+ 5

Variables

Es recomendable declarar variables en javascript la mayoría de las veces con var ?

15th May 2017, 10:05 PM
Andrea Urdaneta
Andrea Urdaneta - avatar
10 Réponses
+ 3
Not sure if I got it right , but declaring variables depends on your needs and situations. var - just regular declaring. let - for declaring variables inside of blocks(local variables) to not let it conflict with globals. const to declare variable, supposed to be unchangeable. For most things "var" is enough .
15th May 2017, 10:38 PM
Rose Sevenyears
Rose  Sevenyears - avatar
+ 2
c++ /if
6th Mar 2020, 4:55 AM
Hamza 🧡
Hamza 🧡 - avatar
0
Variables
25th Sep 2019, 5:31 AM
RUTVIK AMBALIYA
RUTVIK AMBALIYA - avatar
0
C++
28th Nov 2020, 7:31 PM
Hamza 🧡
Hamza 🧡 - avatar
0
¿Hola alguien sabe cuales son los tipos de varrible?
25th Jan 2021, 9:30 PM
Jesus DAVID Medrano barrios
Jesus DAVID Medrano barrios - avatar
0
What is the console.log
3rd Feb 2021, 1:58 AM
Angi •
Angi • - avatar
0
Amogus
7th Nov 2021, 4:43 PM
dr.srilatha C
0
Let
1st Dec 2021, 2:20 PM
Рашид Абдуллаев
Рашид Абдуллаев - avatar
- 1
Please which code come after the assignment operator ,when assigning value to this var canvas = ?
22nd Sep 2019, 11:29 PM
hussaini saidu
hussaini saidu - avatar
- 2
CAN YOU CALL ON A VAR MULTIPLE TIME.
15th May 2017, 10:36 PM
‎‏‪4CORNERS “WALLIE”‬‏‎
‎‏‪4CORNERS “WALLIE”‬‏‎ - avatar