JavaScript JavaScript Quickstart Data Types and Variables Creating Variables

rovelle trinidad
rovelle trinidad
297 Points

I don't know how to create a variable from myname and turn it into a string

The question is asking me to create a variable through myname and I can't seem to figure out how

scripts.js
var = myname
prompt('myname')

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 31,052 Points

The first task is 'Create a variable named myName and assign it your name as a string'.

var myName = "your name"

text and the quotes make "your name" a string