B4Coder
0%
LessonAbout 6 min

Chapter 2 · Lesson 4 of 5

04. Asking questions with prompt()

prompt() asks a question and gives back the answer, always as a string. Turn answers into numbers with Number() or parseInt().

Opening the lesson…