how to create a player variable with the string 'jasmine' in it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to create a player variable with the string 'jasmine' in it

how to get this done in JavaScript

2nd Jul 2017, 11:33 PM
Melvin Toran
8 Answers
+ 1
do you mean like this var player = "jasmine";
3rd Jul 2017, 12:24 AM
hesham mohamed
hesham mohamed - avatar
+ 1
I did that then it asks me did you assign the name Jasmine to the player variable
3rd Jul 2017, 12:27 AM
Melvin Toran
0
not understand you ... can you explain more in details !!
3rd Jul 2017, 12:32 AM
hesham mohamed
hesham mohamed - avatar
0
var mainPlayer = 'jasmine'
3rd Jul 2017, 1:01 AM
Yerko n
Yerko n - avatar
0
I'm using Treehouse to learn JavaScript
3rd Jul 2017, 2:24 AM
Melvin Toran
0
is telling me to create a player variable with the string Jasmine in it
3rd Jul 2017, 2:24 AM
Melvin Toran
0
so I put VAR player equals 'Jasmine';
3rd Jul 2017, 2:25 AM
Melvin Toran
0
after doing that it said did you assign the name Jasmine to player variable telling me that I did it incorrectly
3rd Jul 2017, 2:26 AM
Melvin Toran