Java Test Flashcards
(29 cards)
you declare a JavaScript variable with:
var carName;
Date and Math objects are:
Built in objects
To convert from a numeric string to an integer us the:
parseInt() function
a property that has no assigned value is referred to being
null
Date and Math objects are:
Built in objects
reusable section of code
function
The correct syntax for referring to an external script called xxx.js is:
“”
JavaScript includes the following types:
numeric, string, boolean
reusable section of code
function
The correct syntax for referring to an external script called xxx.js is:
A property is a characteristic of an:
Object
The correct syntax for referring to an external script called xxx.js is:
;
JavaScript includes the following types:
numeric, string, boolean
You write “Hello World” in an alert box as:
alert(“HelloWorld”);
a property that has no assigned value is referred to being
null
A property that allows javascript to modify an HTML element without the script tab is:
innerHTML
You write “Hello World” in an alert box as:
alert(“HelloWorld”);
A set of rules that dictate how the language is written
Syntax
A set of rules that dictate how the language is written
Syntax
The correct javascript syntax to change the content of the HTML element is
document.getElementById(“demo”).innerHTML = “Hello World!”;
JavaScript uses a:
dot syntax
JavaScript uses a:
dot syntax
variables store information
temporarily
To round the number 7.25 to the nearest integer use:
Math.round(7.15)