Support us .Net Basics C# SQL ASP.NET Aarvi MVC Slides C# Programs Subscribe Download

Tools for learning JavaScript

Suggested Videos
Part 2 - Why do we need both client side and server side validation
Part 3 - Disadvantages of JavaScript
Part 4 - How to debug javascript in visual studio



In this video we will discuss 
1. Tools required to learn JavaScript
2. Websites that help write and test JavaScript
3. Advantage of using Visual Studio to learn JavaScript



Tools required to learn JavaScript
To learn JavaScript all you need is a text editor like NOTEPAD and a broswer. You can use any browser Chrome, Internet Explorer or Firefox.

Here are stepd to use notepad to write and test your first JavaScript program
1. Open a notepad. 

2. Copy and paste the following HTML and JavaScript in the notepad.
<html>
  <head>
  </head>
  <body>
    <h1>JavaScript Training</h1> 
    <script type="text/javascript">
        alert("Welcome to JavaScript Tutorial");
    </script>
  </body>
</html>

Please Note : JavaScript should be inside the <script> element, The type attribute specifies that the script is JavaScript. If the type attribute is absent, then the script is treated as JavaScript. With in the script tag we have a single line of JavaScript, that displays an alert box with the message "Welcome to JavaScript Tutorial". alert() is a JavaScript function. We will discuss JavaScript functions in detail in a later video session. The JavaScript statement ends with a semicolon(;). It is not mandatory for a JavaScript statement to end with a semicolon, but it's a good practice to avoid ambiguity. The above JavaScript code will work even without the semicolon.

3. Save the notepad with .htm or .html extension.

4. Open your favourite browser. From the File menu, select Open and navigate to the location where you have saved the notepad and open it. An alert box should pop up displaying the message "Welcome to JavaScript Tutorial".

Websites that help write and test JavaScript : One of the websites I have found very useful to write and test JavaScript is http://jsbin.com. This website also provides intellisense and autocomplete features. Type the partial name of the variable or the function and press TAB key.

Advantage of using Visual Studio to learn JavaScript
Advantage of using Visual Studio over notepad to learn JavaScript is that it provides intellisense and autocomplete features which can reduce typos and increase developer productivity. It also provides rich JavaScript debugging support.

JavaScript tutorial

No comments:

Post a Comment

It would be great if you can help share these free resources