-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem15.js
More file actions
10 lines (6 loc) · 806 Bytes
/
problem15.js
File metadata and controls
10 lines (6 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
/* Create an array with the names of all the things you have learned in this lesson. Then use a for loop to output all elements of that array. */
var itemsLearnt = ["Variable declaration", "Data types","String concatenation", "ParseInt()", "ParseFloat()", "toFixed()", "Math operations","Conditions", "Multiple conditions", "Multi stage conditions", "Array","Find array elements by index", "Find index by array element", "Array length", "Update array element", "Add element at the last of an array", "Add element at first of an array", "Remove the last element of an array", "Remove first element of an array", "While loop", "For loop", "Loop break", "Loop continue", "Loop reverse" ];
for( var i = 0; i < itemsLearnt.length; i++){
var item = itemsLearnt[i];
console.log(i + ". " + item);
}