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. 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

Do you have feedback on this lesson? Let us know here
Rate this lesson:

Feedback on this lesson:

Issue found (optional):