- 1

81 Comments const Fill in the blanks to make a constant named total and the variable i that is only accessible inside the loop.

________ total = 100; let sum = 0; for( _________ i = 0; i < total; i++) { sum += i; }

29th Oct 2021, 3:49 PM
Kniffin Haruka
Kniffin Haruka - avatar
3 Réponses
+ 3
A: const & let
29th Oct 2021, 3:52 PM
Kniffin Haruka
Kniffin Haruka - avatar
+ 1
In first line u have to write keyword which used to define variable . Then statement two u need to write initial part of for loop
29th Oct 2021, 3:55 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
1-const 2-let
30th Nov 2021, 8:09 AM
M.Salem AL-najjar