How match variable var occupies, goes in memory ? Thanks you. I want this to calculate complexity in memory. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 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 Réponse
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