JAVASCRIPT Flashcards
It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user
and make dynamic pages.
JavaScript
- It is complimentary to and integrated with Java. A very easy to implement because it is integrated with HTML. It is open and cross-platform.
-a dynamic computer programming language.
JavaScript
Why to Learn Javascript?
- Javascript is the most popular programming language in the world and that makes it a programmer’s great choice
-Javascript is everywhere, it comes installed on every modern web browser and so to learn Javascript you really do not need any special environment setup - Javascript helps you create really beautiful and crazy fast websites.
- JavaScript usage has now extended to mobile app development,desktop app development, and game development.
What is the output of this?
<html>
<body>
<script> document.write("Hello World!") </script>
</body>
</html>
Hello World!
Enumerate the applications of JavaScript Programming
- Client side validation
- Manipulating HTML Pages
- User Notifications
- Presentations
- Server Applications
- Back-end Data Loading
the most common form of the language.
The script should be included in or referenced by an HTML document for the code to be interpreted by the browser.
Client-side JavaScript
True or False
The JavaScript code is executed when the user submits the form, and only if all the entries are valid, they would be submitted to the Web Server.
True
True or False
JavaScript can be used to trap user-initiated events such as button clicks, link navigation, and other actions that the user initiates explicitly or implicitly.
True
Enumerate the Advantages of JavaScript
- Less server interaction
- Immediate feedback to the visitors
- Increase interactivity
- Richer interfaces
You can validate user input before sending the page off to the server.
Less server interaction
They don’t have to wait for a page reload to see if they have forgotten to enter something.
Immediate feedback to the visitors
You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.
Increased interactivity
You can use JavaScript to include such items as drag-and-drop components and sliders to give a Rich Interface to your site visitors.
Richer interfaces
What are the limitations of JavaScript
-Client-side JavaScript does not allow the reading or writing of files. This has been kept for security reason
-JavaScript cannot be used for networking applications because there is no such support available.
-JavaScript doesn’t have any multi-threading or multiprocessor capabilities.
True or False
- JavaScript can be implemented using JavaScript statements that are placed within the
...
HTML tags in a web page.
True