- 2

How match variable var occupies, goes in memory ? Thanks you. I want this to calculate complexity in memory.

var occupies goes in memory. https://code.sololearn.com/WI6mk8ULNYRQ/?ref=app

16th Jul 2021, 12:40 PM
Malick Diagne
Malick Diagne - avatar
1 ответ
0
Var is uses global scope in JS which tends to be a problem because you can overwrite a variable, try to use const and let
24th Jul 2021, 6:13 AM
jd.apprentice
jd.apprentice - avatar