January 2018
Intermediate to advanced
678 pages
20h 16m
English
You’ve been using strings for quite a while now, but you’ve been using them in a bare-bones fashion. In this section, you’ll learn about some of the functionality that JavaScript provides to make working with strings easier. That added functionality is particularly important because strings are used so often for processing user input. In this section, you’ll learn about string operators, hard-to-represent string characters (such as the quote character), and also string methods.
In the improved Game Night web page, remember the following prompt for the user’s name and the if statement that verifies that the user entered something?
var name; // user's name name = prompt("What's your name?"); if (name != null) ...Read now
Unlock full access