Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get first elements of array

const [first, second, third] = ["Laide", "Gabriel", "Jets"];
console.log(first);  // Output: Laide
console.log(second); // Output: Gabriel
console.log(third);  // Output: Jets
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #elements #array
ADD COMMENT
Topic
Name
2+4 =