+ 5
Pls I want to have a space in between 2 parameters for a variable in js
7 ответов
+ 27
nope...
+ 24
const person = {
'full name': 'Nikolay Nachev',
age: 40
}
console.log( person['full name'] );
// Nikolay Nachev
+ 15
javascript (or any language that I know of if it matters) does not support spaces in variables' names. However there is a way to have spaces in object property names. If that can help mention me and I'll come back with a code...
+ 9
hey who the heck down voted nikolay sir's post ...
👹
+ 6
Nikolay Nachev Congrats for becoming a Moderator 👑
+ 4
Thank you
so i cant use variable?
+ 2
Nikolay Nachev
ok, thanks
like creating a variable for fullName