#MIHS ScriptEd Exit Ticket - 2/10/2015
Get a sheet of paper, write your name, and then answer the following questions:
-
For the string
"We're all alike."
What is the index of the first space, the index of the second space, and the index of the period? What is the length of the string? -
Write what will be printed to the console after the following code:
var message = "We can't stop at all"
message = message.replace("at", "us");
message = message.replace("We", "You");
message = message + ".";
message = message.toUpperCase();
console.log(message);
- There are three things wrong with this function, list them:
function (firstName, lastName)
return "My Full Name is: " + firstname + " " lastName;
}