+ 5

Pls I want to have a space in between 2 parameters for a variable in js

13th Jun 2018, 1:35 PM
Favor Mofadeke Salako
7 Respostas
+ 27
nope...
13th Jun 2018, 5:49 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 24
const person = { 'full name': 'Nikolay Nachev', age: 40 } console.log( person['full name'] ); // Nikolay Nachev
13th Jun 2018, 5:35 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 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...
13th Jun 2018, 5:19 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 9
hey who the heck down voted nikolay sir's post ... 👹
13th Jun 2018, 5:53 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 6
Nikolay Nachev Congrats for becoming a Moderator 👑
19th Jun 2018, 9:19 AM
Dlite
Dlite - avatar
+ 4
Thank you so i cant use variable?
13th Jun 2018, 5:48 PM
Favor Mofadeke Salako
+ 2
Nikolay Nachev ok, thanks like creating a variable for fullName
13th Jun 2018, 5:28 PM
Favor Mofadeke Salako