Verified Multiple Choice and Conceptual Actual 100%
Correct Detailed Answers
Guaranteed Pass!!Current Update!!
Terms in this set (514)
What type of script is this?
Embedded
What type of script is this?
Inline
script Which element is used to link an external JavaScript file?
Calculations A calculator is a real-world object. Which are methods of the calculator object?
objects What do we call reusable units of code that have properties and methods?
Given this:
var greeting = "Welcome to the course";
var fName = "Jane";
1 (alert greeting + "," + fName + " " + lName)
var lName = "Doe";
What piece of code produces this greeting:
Welcome to the course, Jane Doe
var age = 24; Declare a variable called age and assign an integer value of 24 to it.
Which are valid variable names
$allowance, _contact, lastName, address1
Nothing. (The code will simply remain in What happens if you define a function but do not call it?
memory but will not execute.)
1/28
, What does the alert message display?
16
What does the alert message display?
24
Size & manufacturer A calculator is a real-world object. Which are properties of the calculator object?
What does the following code write to the page?
246
Which function outputs the value of sum?
1 (function addition(a,b){ sum = a + b; return
sum })
What correctly calls the math function to return a
value of 46?
math(15);
What type of data is represented here?
string (example)
What is written to the page by this code?
14
What is written to the page by this code?
99
Which code should you use if you want to specify
a message string to appear as part of your
2 (document.write("Welcome!");)
webpage as it loads?
What component of JavaScript is "Web
Development Applications" in this example?
The variable's value
What is the outcome of this code if "Web
Welcome to the course, Web Development Development Applications" is entered into the
Applications! prompt?
Without modifying the existing variables, how
would you concatenate these two variable so that
var fullName = fName + " " + IName;
the value of fullName is "Jane Doe"?
2/28
, What is displayed in the alert message below?
12
What is displayed in the alert message below?
7
What is the value of myText after execution?
Hello World
What does the following code return?
False
Which alert method will display 30 by using the
variable num = "10"?
1 (alert(3 * parseInt(num));)
What is the value of var res after execution?
HELLO WORLD!
What event handler calls the runMe function?
onclick (function)
Which code correctly asks the user for their age:
1 (prompt("What is your age?");)
Given that: a=50; b=100; Which answer is false?
a >= b;
Which JavaScript event occurs when the user
moves the mouse off of a link?
mouseOut
What does the following code produce after the
Good morning user's name (whatever is user's prompt response:
entered by the user).
What does myFunction output?
myFunction() return value
3/28