Please enable JavaScript to use CodeHS

CodeHS Glossary


readLine JavaScript

Allows for the reading of user input when a string is used.

For example, the code below:

    var name = readLine("What is your name?);
    println("Hello " + name);

If the user types, Kim as their name, the program will print out

Hello Kim