Learn JavaScript ARRAYS in 8 minutes! 🗃
00:00:00 arrays 00:01:06 index 00:02:16 array methods 00:03:07 .length 00:03:41 .indexOf 00:04:33 iterate an array 00:06:34 enhanced for loop 00:07:18 sort 0...
🔥 Related Trending Topics
LIVE TRENDSThis video may be related to current global trending topics. Click any trend to explore more videos about what's hot right now!
THIS VIDEO IS TRENDING!
This video is currently trending in Thailand under the topic 'สภาพอากาศ'.
About this video
00:00:00 arrays
00:01:06 index
00:02:16 array methods
00:03:07 .length
00:03:41 .indexOf
00:04:33 iterate an array
00:06:34 enhanced for loop
00:07:18 sort
00:07:29 reverse sort
00:07:44 conclusion
// array = a variable like structure that can
// hold more than 1 value
let fruits = ["apple", "orange", "banana", "coconut"];
//fruits.push("coconut"); //add an element
//fruits.pop(); //removes last element
//fruits.unshift("mango"); //add element to beginning
//fruits.shift(); //removes element from beginning
let numOfFruits = fruits.length;
let index = fruits.indexOf("coconut");
//console.log(fruits);
//console.log(fruits[0]);
//console.log(fruits[1]);
//console.log(fruits[2]);
//console.log(fruits[3]);
//console.log(numOfFruits);
//console.log(index);
//fruits.sort();
//fruits.sort().reverse();
for(let fruit of fruits){
console.log(fruit);
}
Video Information
Views
107.5K
Total views since publication
Likes
2.5K
User likes and reactions
Duration
8:06
Video length
Published
Nov 5, 2023
Release date
Quality
hd
Video definition
About the Channel
Tags and Topics
This video is tagged with the following topics. Click any tag to explore more related content and discover similar videos:
#JavaScript arrays #array #arrays #javascript #javascript tutorial #javascript full course #javascript course #course #full course #web development #web developer #software engineer #software engineering #coding tutorial #learn to code #tutorial #html #css
Tags help categorize content and make it easier to find related videos. Browse our collection to discover more content in these categories.