Prompt in JS


#1

I think something is going on wrong here !
I am adding prompt using book(Eloquent JavaScript) and no kind of text works on my browser !
Can anyone help me out ?!

This is what I added;
Let theNumber = Number(prompt(“Pick a Number”));
console.log("Your number is the square root of " + theNumber * theNumber);


#2

Can you attach a link?


#3

I do not have the link rn so I can’t ! It was just a practice from some book(not even a practice or exercise) I just copied that for me . The only way I can remember things!


#4

Can you link us to the page in Eloquent JavaScript where this is discussed?

Lowercase must be used on keywords…

let theNumber = ...

#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.