Skip to content

variables · reference

var x = promptNum("Enter a value");·

use
var x = promptNum("Enter a value");
kind
a statement: a line of its own
drawer
Variables, in the code room's blocks

Explain this block

Ask how var x = promptNum("Enter a value"); works in your game.