JAVASCRIPT Flashcards
a light-weight object-oriented programming language which is used by several websites for scripting the webpages.
JavaScript
It is an interpreted, full-fledged programming language that enables dynamic interactivity on websites when applied to an HTML document.
JavaScript
JavaScript was introduced in the year _____- for adding programs to the webpages in the Netscape Navigator browser.
1995
What are the features of JavaScript?
- All popular web browsers support JavaScript as they provide built-in execution environments.
- JavaScript follows the syntax and structure of the C programming language. Thus, it is a structured programming language.
- JavaScript is a weakly typed language, where certain types are implicitly cast (depending on the operation).
- JavaScript is an object-oriented programming language that uses prototypes rather than using classes for inheritance.
- It is a light-weighted and interpreted language.
- It is a case-sensitive language.
- JavaScript is supportable in several operating systems including, Windows, macOS, etc.
- It provides good control to the users over the web browsers.
the first popular web browser in 1993
Mosaic
In the year 1994, Netscape was founded by?
Marc Andreessen
in 1995 who implement and embed Scheme programming language to the browser?
Brendan Eich
JavaScript is used to create interactive websites. It is mainly used for?
Client-side validation,
Dynamic drop-down menus,
Displaying date and time,
Displaying pop-up windows and dialog boxes (like an alert dialog box, confirm dialog box and prompt dialog box),
Displaying clocks etc.
The ________ tag specifies that we are using JavaScript.
script
The _____________ is the content type that provides information to the browser about the data.
text/javascript
The _______________ function is used to display dynamic content through JavaScript.
document.write()
What are the 3 Places to put JavaScript code?
Between the body tag of html
Between the head tag of html
In .js file (external javaScript)
What is the output of this code?
<html>
<head>
<script> function msg(){ alert("Hello Javatpoint"); } </script>
</head>
<body>
<p>Welcome to JavaScript</p>
<form>
<input></input>
</form>
</body>
</html>
Welcome to Javascript
yna -> a button
and when you click “yna”
it will show “Hello Javatpoint” which is the message
True or False
We can create external JavaScript file and embed it in many html page.
True
True or False
External JavaScript file provides code re usability because single JavaScript file can be used in several html pages.
True