- JavaScript Basics
- JavaScript Home
- JavaScript Syntax
- JavaScript Placements
- JavaScript Output
- JavaScript Statements
- JavaScript Keywords
- JavaScript Comments
- JavaScript Variables
- JavaScript var
- JavaScript let
- JavaScript const
- JavaScript var Vs let Vs const
- JavaScript Operators
- JavaScript Comparison/Logical
- JavaScript Data Types
- JS Conditional Statements
- JavaScript Conditional Statement
- JavaScript if Statement
- JavaScript if-else Statement
- JavaScript switch Statement
- JavaScript Loops
- JavaScript for Loop
- JavaScript while Loop
- JavaScript do-while Loop
- JavaScript Break Continue
- JavaScript Popup Boxes
- JavaScript Dialog Box
- JavaScript alert Box
- JavaScript confirm Box
- JavaScript prompt Box
- JavaScript Functions
- JavaScript Functions
- JS Function with Parameter
- JavaScript Return Statement
- JavaScript Variable Scope
- JavaScript setTimeout() Method
- JavaScript setInterval() Method
- JavaScript Events
- JavaScript Events
- JavaScript onclick Event
- JavaScript onload Event
- JavaScript Mouse Events
- JavaScript onreset Event
- JavaScript onsubmit Event
- JavaScript Objects
- JavaScript Objects
- JavaScript Number Object
- JavaScript Array Object
- JavaScript String Object
- JavaScript Boolean Object
- JavaScript Math Object
- JavaScript RegExp Object
- JavaScript Date Object
- JavaScript Browser Objects
- JavaScript Browser Objects
- JavaScript Window Object
- JavaScript Navigator Object
- JavaScript History Object
- JavaScript Screen Object
- JavaScript Location Object
- JavaScript Document Object
- JS Document Object Collection
- JS Document Object Properties
- JS Document Object Methods
- JS Document Object with Forms
- JavaScript DOM
- JavaScript DOM
- JavaScript DOM Nodes
- JavaScript DOM Levels
- JavaScript DOM Interfaces
- JavaScript Cookies
- JavaScript Cookies
- JavaScript Create/Delete Cookies
- JavaScript Advance
- JavaScript Regular Expression
- JavaScript Page Redirection
- JavaScript Form Validation
- JavaScript Validations
- JavaScript Error Handling
- JavaScript Exception Handling
- JavaScript try-catch throw finally
- JavaScript onerror Event
- JavaScript Multimedia
- JavaScript Animation
- JavaScript Image Map
- JavaScript Debugging
- JavaScript Browser Detection
- JavaScript Security
- JavaScript Misc
- JavaScript innerHTML
- JavaScript getElementById()
- JS getElementsByClassName()
- JS getElementsByName()
- JS getElementsByTagName()
- JavaScript querySelector()
- JavaScript querySelectorAll()
- JavaScript document.write()
- JavaScript console.log()
- JavaScript Programs
- JavaScript Programs
- JavaScript Test
- JavaScript Online Test
- Give Online Test
- All Test List
JavaScript Tutorial
You will learn all about JavaScript in this tutorial from basic to advance.
What is JavaScript ?
JavaScript is a client and server-side object-based scripting language that is used to make interactive Web pages. A scripting language is a lightweight programming language with less complexity.
JavaScript is the most usually used scripting language to add dynamism and interactivity to Web pages. This is because JavaScript, written on the client-side, executes on a client browser, thereby reducing the load on the server.
JavaScript is an Interpreted Language
JavaScript is an interpreted language, which implies that scripts written to JavaScript are processed line by line. These scripts are interpreted by the JavaScript interpreted, which is a built-in component of the Web browser.
JavaScript can be written on the client-side as well server-side. Client-side JavaScript allows you to validate only those programs that execute and produce the result on the client-machine. In counterpoint/contrast, server-side JavaScript validates only those programs that execute on the server. JavaScript includes various built-in objects and features that can be used to make your HTML pages dynamic.
JavaScript is platform-independent
JavaScript is platform-independent, which implies that you need to write the script once and can run it on any platform or browser without affecting the output of the script.
Why to Learn JavaScript ?
There are the three languages, all web developers must know, these are the following:
- HTML - to define the content of web pages
- CSS - to define the layout of web pages
- JavaScript - to program the behaviour of web pages
So to program the behaviour of Web pages, you must have to learn JavaScript. You will learn all about JavaScript in this tutorial.
Advantages of JavaScript
Here are the advantages of JavaScript:
- Less server interaction
- More interactivity
- Richer interfaces
- Fast feedback to visitors
- and many more
Here is a simple JavaScript example.
<!DOCTYPE HTML> <html> <head> <title>JavaScript Tutorial</title> </head> <body> <h2>JavaScript Tutorial - Learn JavaScript</h2> <p id="test">This is a simple Example of JavaScript.</p> <button type="button" onclick="document.getElementById('test').innerHTML = 'Welcome to JavaScript!'"> Click Me</button> </body> </html>
Save the above file with .html extension like filename.html, and open it in your browser, the web page will look like:

Now click, on the button Click Me, you will watch Welcome to JavaScript! in the place of This is a simple Example of JavaScript. as shown in this image:

You can also try it with your own, by clicking on the below button:
JavaScript Tutorial - Learn JavaScript
This is a simple Example of JavaScript.
You will learn all about JavaScript one by one in this tutorial series.
Audience
This tutorial is designed and developed to those JavaScript lover who are beginner in this field and wants to get some knowledge about it from very basic to an advance level as we have included as many code as required in each and every chapter in this JavaScript tutorial series.
Therefore you can easily follow this JavaScript tutorial series to get or achieve knowledge about JavaScript.
Prerequisites
Before start learning JavaScript, you must have some prior knowledge about HTML as JavaScript is a languge used to trigger HTML elements to perform some user based actions.
If you have some prior knowledge of HTML and how to program, then it becomes very easy to learn JavaScript here.
« CodesCracker Home Next Tutorial »