What is JavaScript?
What is JavaScript?
Have you ever wondered, what is JavaScript,
is it a part of Java, and why is it so popular?😕
I had the same questions, I’ll
tell you what I’ve learned, I think it will be helpful if you’re new at this Technology.
I want to highlight these areas,
- What is JavaScript?
- What is the difference between java and JavaScript?
- How does it work?
- Why is it so popular (Benefits of JS)?
01.What is JavaScript?
JS is the shortened version of
JavaScript.
JS is a programing language follows the ECMAScript specification. JS is high-level, often just-in-time compiled, and multi-paradigm. JS contains curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.
Lets look at those big words,
- ECMAScript specification - An organization that creates
standards for technologies(European Computer Manufacturers Association).
- High
level language - Programming languages which are designed to
simplify computer programming. High-level source code contains
easy-to-read syntax that is converted into a low-level language, which can
be recognized and run by the CPU.
- Just-in-time
compiled - Compilation is done during execution.
- Multi-paradigm
- Supporting more than one
programming paradigm, in order to allow the most suitable
programming style for a task.
- Dynamic
typing - You can go about declaring variables, functions,
objects and anything without declaring the type.
- prototype-based
- Style of OOP which reuse existing objects that serve
as Prototypes.
JavaScript is a programming language used primarily by Web
browsers to create a dynamic web content. It used both on the client-side and
server-side that allows you to make web pages interactive. HTML and CSS give
structure and style to web pages, JavaScript gives web pages interactive
elements that engage with users.
02.Difference between java and JavaScript?
People always confuse JavaScript with java because of this “Java”
word. But it’s just a word, there is no connection between java and JavaScript.
Yes, they share some common strategies but JavaScript not a part of Java.
Source: https://hackernoon.com/java-vs-javascript-heres-what-you-need-to-know-9b1b708394e2
03.How does it work?
Web applications (search engine) works on the interaction between the user’s device and a remote server. This remote server sends information to the client(user’s machine). Client reads the info and render the requested web pages on screen.
For example : When a power down even though you haven’t got internet connection, still you can navigate within the webpages which already loaded in your memory.
Dynamic features to the web performed by JavaScript:
- Autocomplete
- Loading
new content or data onto the page without reloading the page
- Rollover
effects and dropdown menus
- Animating
page elements such as fading, resizing or relocating
- Playing
audio and video
- Validating
input from Web forms
- Repairing
browser compatibility issues
04.Why is it So Popular?
How popular is JS? 🤔
- JavaScript
is the most popular programming language - 71.5%
- Java
is a far second - 45.4%
- Python is on third position - 37.9%
Popularity means that
JavaScript is being used in a lot of places and more people (developers)
working on JavaScript than other programming languages.
Why is that?
JavaScript benefits :
- You can build anything and everything with JavaScript
- JavaScript is in demand
- Popularity. JavaScript is used everywhere on the web.
- Faster user experiences
- Gives the ability to create rich interfaces.
- Being client-side reduces the demand on the website server
- JavaScript developers are paid well
- JS is easy to learn
Today JavaScript the #1 programming language
Stack
Overflow Survey 2018
super
ReplyDelete