// 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); /* for(let i = 0; i < fruits.length; i++){ console.log(fruits[i]); } */ /* for(let i = fruits.length - 1; i >= 0; i--){ console.log(fruits[i]); } */ //fruits.sort(); //fruits.sort().reverse(); for(let fruit of fruits){ console.log(fruit); }
@JoséLuisGarduñoArrieta27 күн бұрын
I love u Bro code! u know... like a friends haha
@ewjefnkwjfn11 ай бұрын
I wwatched 4 tutorials and this was the first one to actually explain to my what is going on- rather than just writing the code
@piotrmazgaj3 ай бұрын
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
@RehanPathan-3221 Жыл бұрын
Wow, what a fantastic tutorial! Learning JavaScript arrays in just 8 minutes is incredibly impressive. The way you explained the concepts and demonstrated practical examples made it so easy to grasp the fundamentals. Thank you for breaking down a potentially complex topic into such a digestible and accessible format. Your clear explanations and engaging teaching style kept me hooked throughout the entire video. I appreciate your effort in making learning JavaScript arrays so enjoyable and effortless. Looking forward to more of your tutorials! 👏👍
@kcode.codeandtech7 ай бұрын
I just spend 20 mins trying to figure out what is the use of it and the guy just explained it in the first 20 seconds
@ZazPi_2 ай бұрын
bro I just watched a course of 1 hour explaining this and i didnt undestand nothing at all lol. Thanks to this explanation I think I got it.
@CherryMakesGameplays4 ай бұрын
neat, clean and simple
@hunin27 Жыл бұрын
Thanks bro. I'll wait for some more complex tutorials. Take your time :D
@samanthacastano71493 ай бұрын
the perfect explanation!! Thanks really grate.
@Nedigital__lol Жыл бұрын
End of day 3 ❤Bro
@Leo_hadi10 Жыл бұрын
how the video installed before 4 minutes and your comment is before 2 weeks
@asukasoryuu10 күн бұрын
i love u sm brocode
@DeviantMCC7 ай бұрын
4:33 5:26
@횻2 ай бұрын
Woaw
@lostmotion188 ай бұрын
How would you apply the fruits variable into index.html? I understand linking it with but can that variable be used as a preset dropdown menu? Wish I could figure out how to make a preset platform/layout/menu instead of repetitively making a long list of coding on each html page. Maybe I'm looking at this the wrong way..