Introduction to JavaScript Flashcards
What is JavaScript designed to add to HTML pages?
Interactivity.
Who developed JavaScript?
Brendan Eich.
Can JavaScript validate data on a webpage?
Yes.
Name one way JavaScript can react to events?
It can execute when a page finishes loading or when a user clicks on an HTML element.
Is JavaScript the same as Java?
No
What type of language is JavaScript?
A scripting language.
Can JavaScript be used in mobile app development?
Yes.
What browsers support JavaScript?
All modern web browsers like Chrome
Where can JavaScript be placed in an HTML file?
In the <head>
What is the syntax to start a JavaScript script in HTML?
<script> . </script>
Can JavaScript read and write HTML elements?
Yes.
What attribute is used to set the alignment of a paragraph in HTML?
align.
What is the most popular programming language in the world?
JavaScript.
Can JavaScript detect the visitor’s browser?
Yes.
What makes JavaScript a great choice for programmers?
Its simplicity and versatility.
What are the four core attributes in HTML?
ID
What is the function of the dir attribute in HTML?
It indicates the text direction.
What is an HTML element defined by?
A starting and a closing tag.
What attribute is used to define characteristics of an HTML element?
An attribute inside the element’s opening tag.
What is a scripting language?
A lightweight programming language.
Who can use JavaScript to add functionality to web pages?
HTML designers.