Please enable JavaScript to use CodeHS

CodeHS Glossary


readInt JavaScript

Allows for the reading of user input when an integer is used. An integer is a whole number. For example, the code below: var age = readInt("How old are you?"); println("You are " + age + " years old."); If the user types, 23 as their age, the program will print out You are 23 years old