JavaScript Tutorial - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
JavaScript Tutorial

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 interpreter, which is a built-in component of the Web browser.
JavaScript can be written on the client-side as well as 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 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 behavior of web pages
So to program the behavior 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 the .html extension like filename.html, and open it in your browser, the web page will look like:

I hope this tutorial helped you JavaScript Tutorial.  As always, if you found this post useful, then subscribe to our free newsletter. You can also follow us on Google+, Twitter or like our Facebook page.

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.