0

Do I name "name" after the var in JavaScript with any name I want

14th Apr 2019, 2:05 PM
Abdullahi Lawal
Abdullahi Lawal - avatar
3 Réponses
+ 1
I supposed that you are talking about declaring a variable in javascript... you may use any name you want to declare as a variable... As var Abdullah; let Abdullah; or const Lawal But it is better to declare a variable with the name according to its working in your code
14th Apr 2019, 4:01 PM
Prabhat Kumar Singh
Prabhat Kumar Singh - avatar
0
yes, the name of the variable can be anything you want.
14th Apr 2019, 5:22 PM
Florin Gabriel Abagiu
Florin Gabriel Abagiu - avatar
0
en declaracion se puede omitir, pero es mejor ponerlo por ser ordenado y legible, ES6 let y const
21st Apr 2019, 7:41 AM
Cristian Alex Astudillo Canessa
Cristian Alex Astudillo Canessa - avatar