Prompt in JS

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);

Can you attach a link?

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!

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

Lowercase must be used on keywords…

let theNumber = ...
1 Like

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