Javascript Flashcards
What is JavaScript used for?
used to create responsive, interactive elements for webpages that enhances user experience.
Is JavaScript considered as a programming language?
Yes.
Where can you insert JavaScript?
In head element, in body element, external file or external URL
What can JavaScript do?
It can change HTML content, change HTML attributes, Change CSS style, Show and hide HTML elements.
You do not need to add the type attribute in script tag. True or false.
True
The language attribute for the script tag is necessary. True or False?
False.
Is external file paid? (JavaScript)
No. Only external URL is paid.
How do you add external file or external URL? (JavaScript)
By adding the src attribute inside script start tag.
Does the script tag need an end tag?
Yes.
What are statements in JavaScript?
are syntax constructs and commands that perform actions.
Statements are separated using colons (:). True or false?
False. You have to use semi colons. (;)
How do you make a one-line comment in JavaScript?
// comment
How do you make a multiple line comment in JavaScript.
/* just like CSS */
The one line comment in JavaScript needs an end tag. True or false.
False.
Define a variable in JavaScript.
used to store values.