Javascript part 1
JavaScript files have the file extension __
.js
JavaScripts need to be put in the ____ and ____section of an HTML page.
<body> and <head>
In HTML, JavaScripts must be inserted inbetween ____ and ____ .
<script> and </script> tags
How many scripts can you place in an HTML document?
As many as needed
Often you will see scripts at the ____ of the <body> section of a web page. What does this do?
Bottom, Reduces display time. (Improves page load because HTML loading is not blocked by scripts loading)
Name 7 JavaScript data types
String, Number, Boolean, Array, Object, Null, Undefined
If you put quotes around a numeric value, it will be treated as ___
a text string
It's good programming practice to declare all variables at the ____
beginning of a script
In HTML, JavaScript statements are ____
command lines executed by the web browser
JavaScript variables are _____
containers for storing data
JavaScript code is written to be executed when an _____ occurs, like when the user clicks a button.
event.
A JavaScript ____ is a block of code designed to perform a particular task
function
JavaScript code inside a _____, can be invoked later, when an event occurs.
function
The value of a variable with no value is ___
undefined
Variable declared without a value will have the value ___
undefined
JavaScript uses the ____ keyword to define variables.
var
Start the statement with ___ and separate the variables by ___
var, comma