Module 5: Getting Started with 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 an interpreted programming language with object-oriented capabilities.
JavaScript
It is complimentary to and integrated with Java.
JavaScript
TRUE OR FALSE:
“JavaScript is very easy to implement because it is integrated with HTML. It is open and cross-platform.”
TRUE
Is JavaScript a dynamic computer programming language?
Yes
JavaScript was first known as?
LiveScript
Why learn JavaScript?
- Most popular programming language in the world
- It is everywhere, comes installed on every modern web browser
- Helps you create really beautiful and crazy fast websites
- Its usage has now extended to mobile app development
- Tons of job growth and high pay for those who know JavaScript
- You can find tons of frameworks and libraries already developed
Applications of JavaScript Programming
- Client-side validation
- Manipulating HTML Pages
- User Notifications
- Back-end Data Loading
- Presentations
- Server Applications
This is really important to verify any user input before submitting it to the server and Javascript plays an important role in validting those inputs at front-end itself.
Client-side validation
This helps in adding and deleting any HTML tag very easily using javascript and modify your HTML to change its look and feel based on different devices and requirements.
Manipulating HTML Pages
You can use Javascript to raise dynamic pop-ups on the webpages to give different types of notifications to your website visitors.
User Notifications
Javascript provides Ajax library which helps in loading back-end data while you are doing some other processing. This really gives an amazing experience to your website visitors.
Back-end Data Loading
JavaScript also provides the facility of creating presentations which gives website look and feel. JavaScript provides RevealJS and BespokeJS libraries to build a web-based slide presentations.
Presentations
Node JS is built on Chrome’s Javascript runtime for building fast and scalable network applications. This is an event based library which helps in developing very sophisticated server applications including Web Servers.
Server Applications
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
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.
Client-Side JavaScript
Can JavaScript be used to trap user-initiated events such as button clicks, link navigation, and other actions that the user initiates explicitly or implicitly?
Yes
Advantages of JavaScript
- Less server interaction
- Immediate feedback to the visitors
- Increased interactivity
- Richer interfaces
You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your 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
- 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.
Limitations of JavaScript