Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions yourPlayground.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//const myArrays = ["Loic","Mathis","Bricia","Eudes","Eleo","Aime","Chany","Christ","Ivan"];
const numers = [2,4,5,34,98,28,56];
//Let's use a For Loop to get all array's value

// for(let i=0; i < myArrays.length; i++){
// console.log(myArray[i]);
// }

//For each
//Let see the simple and short way of doing this
//for(const myArray of myArrays){
// console.log(myArray);
//}
// let doubleOfArray = []
// //Let's get the double of this array
// for(const arrayNumber of arrayNumbers){
// doubleOfArray.push(arrayNumber * 2);
// }
// console.log(doubleOfArray);
const letterCounter = () =>{
const phrase = "hey, can you go to the grocery store with me?"
for (letter of phrase){
console.log(letter);
}
}
console.log(letterCounter());