Please enable JavaScript to use CodeHS

Chapter 1

Basic JavaScript and Graphics

1.4 User Input

User Input with Strings

User Input with Integers

User Input with Floats

Basic User Input

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Movie Plans

Vocabulary

Term Definition
readLine Allows for the reading of user input when a string is used
readInt Allows for the reading of user input when an integer is used
readFloat Allows for the reading of user input when a float number is used