JavaScript Introduction
This tutorial talks about JavaScript Introduction that What is JavaScript?, and what role does JavaScript play in digital activities?
JavaScript Definition
JavaScript is a programming language that's used for web and application development
what does javascript do?
JavaScript can dynamically add and update both HTML and CSS, JavaScript can calculate, manipulate and validate, JavaScript create and control every animated or interactive object.
JavaScript Syntax
JavaScript syntax is based on Java and C languages, It has curly-bracket syntax, Used in both the front-end and back-end.
JavaScript Popularity
JavaScript is one of the most popular programming language in the world, we can also call it as Scripting Language.
Why we learn JavaScript?
JavaScript has covered the market on a very large scale, JavaScript has made a strong hold in the market, because JavaScript is used in web development, now JavaScript is also being used in application development and software development.
JavaScript is a Event Based Programing Language.
The Event is an activity in the web or application as a result of the following option being executed.
Here are some events, check them out:
- Click Events
- Single Click
- Double Click
- Right Click
- Mouse Events
- Mouse Hover
- Mouse Out
- Mouse Drop
- Key Events
- Key Press
- Key Up
- Window Events
- Load
- Unload
- Resize
- Scroll
- There are also other events, which are not explained here.
Benefits of Learning JavaScript
What can you do after learning JavaScript?
A developer can perform three major development tasks after learning JavaScript:
- Web Development
- Desktop App Development
- Mobile App Development
Now we understand these three, one by one, what do you need to learn to develop them?
Web Development | Desktop App Development | Mobile App Development |
---|---|---|
|
|
|
- Electron JS is the Combination of Angular JS and Node JS.
- Node JS can also be used as server side scripting language.
- JavaScript can be used for both client side script (front end) and server side script (back end).
- With JavaScript you can create games, new technologies like Internet of Things, robotic programming and even virtual reality based programming by learning JavaScript.
What use of JavaScript in web development?
JavaScript is commonly used to add dynamic behavior and special effects to web pages.
JavaScript is primarily used for authentication purposes, through which we can perform complex tasks.
JavaScript is a very interesting technology used on the web, we use JavaScript to run many of our interactive features, which allows users to have a lot of fun.
Here are some examples of interactive patterns created by JavaScript:
- Dropdown Menu
- Animated Sliders
- Maps
- Chart-Graphs
- Pop-up Window
- Audio Players
- Video Players
- Zoom effects
- Animated Gallery
- Form Validation
- Accordions
- Calender
- There are other samples, which are not included here.
Which software is required for JavaScript?
Javascript requires only two softwares.
- HTML Editor
- Web Browser
You can use any HTML editor. We've provided a list of free HTML editors here. You can type javascript using any of these editors.
- Notepad
- Notepad++
- VS Code
- Sublime
- Atom
You can use any web browser of your choice to browse result of JavaScript.
- Google Chrome
- Mozilla Firefox
- Internet Explorer
- Microsoft Edge
- Safari
Also understand here that JavaScript language is one of the 3 languages that a web developer needs to learn.
What are the 3 languages that a web developer needs to learn?
first is html
What does HTML do?
HTML forms the structure of our web page.
and the second is CSS
What does CSS do?
CSS creates a layout, and designs the layout,
That is, prepares the layout on the structure of HTML and prepares the design of the layout.
And the third one is JavaScript,
What use of Javascript?
Javascript works on behavior, behavior means like what happens when we click? What happens when you double click? What happens when you right click? What happens when our web page opens? What happens when the web page is closed? What happens when I submit the form in the website? e.t.c. So these kinds of things are called behavior, we control the behavior by javascript.
So a web developer must learn these three languages.
Currently, many JavaScript libraries have come into the market, such as jQuery, React, Underscore, D3.js, Glimmer.js, etc.
JavaScript is used a lot in web development, such as creating drop down lists, creating animated sliders, validating forms, besides JavaScript is used to perform many other actions.