Javascript part 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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


Set pelajaran terkait

8.4 Why Do States Have Distinctive Geographic Structure?

View Set

Science Lifepac 1009 Study Guide

View Set

Bio - Chapter 21 - evidence for evolution (c)

View Set

Radiology chapter 17: Panoramic examination

View Set

Fahmy 3030 ===> 12/2 Portuguese English sentences 1

View Set

Chronic Pain and Headaches Review (Prep U)

View Set

Health of the individual, family, and community NCLEX

View Set

Real Estate Continuing Education Practice Questions 45 hours

View Set