Date:21/04/2022
Day:Thursday
Today, I started at about 10:30 am and as I was in progress to complete my java script course so, I started with the left over task I started with working with array modules as firstly the instructor started with simple array methods in this it included simple method declared and using map we declared the array with predefined values and after this I started with the new method in this basically we manipulated the arrays as we get result of console.log(array-1) as declared array so, as the result we get the number of elements of array-1 so, this was basically for having the count of elements of array after this I started with for each loop The JavaScript forEach method is one of the several ways to loop through arrays. Each method has different features, and it is up to you, depending on what you're doing, to decide which one to use The forEach method passes a callback function for each element of an array together with the following parameters Current Value ( The value of the current array element),Index (The current element's index number),Array (The array object to which the current element belongs) after this I started with for each with Map it is used with forEach(function(value, key, map) this syntax and after this I worked with the project named as auction system so, this way my day ended up and I got to learn many new things.
Top comments (0)