JavaScript Course What is JavaScript ?
Last Updated :
02 Mar, 2023
JavaScript is a very famous programming language that was originally started in the year of 1995 with the motive of making web pages alive. It is also an essential part of the web developer skillset. In simple terms, if you want to learn web development then learn HTML & CSS before starting JavaScript.
- HTML: HTML is used to create the structure of web pages that are displayed on the World Wide Web (www). It contains Tags and Attributes that are used to design the web pages. Also, we can link multiple pages using Hyperlinks.
- CSS: Styling is an essential property for any website. It increases the standards and overall look of the website that makes it easier for the user to interact with it.
JavaScript is easy to learn but hard to master and is used for a wide variety of purposes, from simply enhancing the functionality of a website to running cool games and web-based software.
History: JavaScript was created over a period of several days by Brandan Eich, a Netscape employee, back in September 1995. Initially called 'Mocha', the language’s name was changed to 'Mona' and then 'LiveScript' before eventually becoming known as 'JavaScript'. In 1996, JavaScript was officially given the name of ECMAScript, with ECMAScript 2 coming out in 1998 and ECMAScript 3 following up in 1999. Today we have ECMAScript 2018. This evolved into today’s JavaScript, which now works not only across different browsers but also on different devices including desktops and mobile devices. In just twenty years or so it’s gone from a primitive programming language to one of the most important tools in a web developer skill set. It's hard to miss JavaScript if you have worked on the Internet.
Working: Inside a normal Web page, which contains some HTML and CSS, you place some JavaScript code. When the browser loads the page, the browser has a built-in interpreter that reads the JavaScript code it finds in the page and runs it. The built-in browser interpreter is basically the 'JavaScript virtual machine'. Different engines have different codenames, different for different browsers, but they do the same thing more or less. These are:
- V8: In Chrome and Opera
- Chakra: In Microsoft Edge
- SpiderMonkey: In Firefox
What Javascript(in-browser) can do?
Modern JavaScript is very powerful as when compared to the versions launched 10 years ago. I can be termed as a 'Safe' Programming language as it was initially created for browsers which do not require it. In browser, JavaScript can do many things like interaction with the user, webpage manipulation and the web server. Some of these are:
- Add new HTML content to the page
- Change Existing HTML content and styles
- React to user actions like mouse clicks, pointer movements etc.
- Can get and set cookies
- Remember the data on the client side.
What Javascript(in-browser) can't do?
There are several things that the javascript can't do and some of these can mainly be related to principle of 'user' safety.
- In-browser JavaScript may not read/write arbitrary files on the hard disk, copy them or execute programs. Basically it doesn't have a direct access to OS system functions.
- It cannot protect your page source or images.
- It cannot access web pages that are hosted on another domain.
Similar Reads
Introduction to JavaScript Course - Learn how to build a task tracker using JavaScript This is an introductory course about JavaScript that will help you learn about the basics of javascript, to begin with, the dynamic part of web development. You will learn the basics like understanding code structures, loops, objects, etc. What this course is about? In this course we will teach you
4 min read
JavaScript Course What is JavaScript ? JavaScript is a very famous programming language that was originally started in the year of 1995 with the motive of making web pages alive. It is also an essential part of the web developer skillset. In simple terms, if you want to learn web development then learn HTML & CSS before starting JavaScri
3 min read
JavaScript Hello World The JavaScript Hello World program is a simple tradition used by programmers to learn the new syntax of a programming language. It involves displaying the text "Hello, World!" on the screen. This basic exercise helps you understand how to output text and run simple scripts in a new programming envir
2 min read
JavaScript Course Understanding Code Structure in JavaScript Inserting JavaScript into a webpage is much like inserting any other HTML content. The tags used to add JavaScript in HTML are <script> and </script>. The code surrounded by the <script> and </script> tags is called a script blog. The 'type' attribute was the most important a
3 min read
JavaScript Course Variables in JavaScript Variables in JavaScript are containers that hold reusable data. It is the basic unit of storage in a program. The value stored in a variable can be changed during program execution. A variable is only a name given to a memory location, all the operations done on the variable effects that memory loca
4 min read
JavaScript Data Types In JavaScript, each value has a data type, defining its nature (e.g., Number, String, Boolean) and operations. Data types are categorized into Primitive (e.g., String, Number) and Non-Primitive (e.g., Objects, Arrays).Primitive Data Type1. NumberThe Number data type in JavaScript includes both integ
5 min read
JavaScript Course Operators in JavaScript An operator is capable of manipulating a certain value or operand. Operators are used to performing specific mathematical and logical computations on operands. In other words, we can say that an operator operates the operands. In JavaScript, operators are used for comparing values, performing arithm
7 min read
JavaScript Course Interaction With User Javascript allows us the privilege to which we can interact with the user and respond accordingly. It includes several user-interface functions which help in the interaction. Let's take a look at them one by one. JavaScript Window alert() Method : It simply creates an alert box that may or may not h
2 min read
JavaScript Course Logical Operators in JavaScript logical operator is mostly used to make decisions based on conditions specified for the statements. It can also be used to manipulate a boolean or set termination conditions for loops. There are three types of logical operators in Javascript: !(NOT): Converts operator to boolean and returns flipped
3 min read
JavaScript Course Conditional Operator in JavaScript JavaScript Conditional Operators allow us to perform different types of actions according to different conditions. We make use of the 'if' statement. if(expression){ do this; } The above argument named 'expression' is basically a condition that we pass into the 'if' and if it returns 'true' then the
3 min read