Code example 2-1let myAge = prompt(“How old are you?”);myAge = parseInt(myAge);const newAge = 18 – myAge;alert(“You will be eligible to vote in ” + newAge + ” years”); Refer to code example 2-1. What would be displayed if the user enters “fifteen” at the prompt and clicks OK?
Blog
What is the value of the variable named myNum after the foll…
What is the value of the variable named myNum after the following code executes? let myNum = 14;let yourNum = 4;myNum++;yourNum–;myNum = myNum * yourNum;
What’s the value of the variable named fullName after the fo…
What’s the value of the variable named fullName after the following code executes?const firstName = “Ray”, lastName = “Harris”;let fullName = lastName;fullName += “, “;fullName += firstName;
Which of the following types of files can you edit in VS Cod…
Which of the following types of files can you edit in VS Code?
ECMAScript is a specification that provides a standard for…..
ECMAScript is a specification that provides a standard for…
Suppose that a JavaScript app on the internet consists of an…
Suppose that a JavaScript app on the internet consists of an HTML file, a CSS file, and a JavaScript file. To run the app, you can…
Suppose that a JavaScript app that’s on your computer consis…
Suppose that a JavaScript app that’s on your computer consists of an HTML file, a CSS file, and a JavaScript file. To run the app, you can…
When an application server runs code to generate a web page…
When an application server runs code to generate a web page in response to an HTTP request, this is called…
Suppose that a JavaScript app on the internet consists of an…
Suppose that a JavaScript app on the internet consists of an HTML file, a CSS file, and a JavaScript file. To run the app, you can…
Suppose that a JavaScript app that’s on your computer consis…
Suppose that a JavaScript app that’s on your computer consists of an HTML file, a CSS file, and a JavaScript file. To run the app, you can…