
What is an Array? Simple Explanation with Examples
WHAT IS ARRAY Multiples value store one countries. Looping can't used array because variable different. First variable, all set same name. Array index value go => 0,1,2,3,4,5..., etc. Starting number value zero. Dynamic size - Value change for any time (User). main one is Array symbol [] square bracket. Examples JavaScript Array program Couny of Fail Output _________________________________ Explain about fail count : First create Array variable name marks and value Next create variable name fail and second variable name i . Create While loop in i < less than 5 if condition marks [i] < less than 35 ,i variable name is set because (say in 6 point) fail variable in post increasesquare bracket i<35 condition true go inside and fail ++ work i ++ variable also post increase,is 0+1=1, again 1+1=2 again again five time run loop this loop condition fail loop repeat. The Finally part in Output used console.log (fail) _________________________________ fail and pass count Output Explain about fail
Continue reading on Dev.to Webdev
Opens in a new tab


