I'd like to teach students how to program using JavaScript. I don't want to introduce new students to call-backs or any other complex program structure. Looking at Node.js the readline used for standard input uses a call-back. For simple input data, then do a calculation, I'd like a simple equivalent to an input like Python or other similar languages have:
width = input("Width? ")
height = input("Height? ")
area = width * height
print("Area is",area)
Is there some way to do this with JavaScript?