Category Archives: Javascript Tutorials




Welcome to the JavaScript Tutorials Section of Tut2learn. This section provides constructive tutorials to important facts, problems, Tricks, Hacks, of JavaScript. This would help us to learn without any requirement of qualification. Further it provides guidance to write and executing JavaScript programs. Main aim of this section to provide guidance for clear HR and Technical round interview of JavaScript Programmer.



Introduction to Javascript

5.0 Objective 5.1 Introduction  a) How to run Javascript? b) What can javascript do? c) Are java and javascript same? 5.2 Java Script Comments 5.3 Elements of Java script: 5.3.1 Data types: 5.3.2 Variable 5.4 Operators 5.4.1 Arithmetic Operators 5.4.2 Assignment Operators 5.4.3 Comparison Operators 5.4.4 Logical Operators 5.4.5 String Operators 5.4.6 Conditional Operators 5.5

more..

Javascript basics Summary

Jscript is Microsoft’s version of JavaScript a scripting language that is standardized by the ECMA international as ECMA script. Often, JavaScript appear in the <head> section of the HTML document, the browse interprets the contents of the <head> section first. Function parseInt  converts its string arguments to an integer. JavaScript does not require variables to

more..

5.6 Function

The best way to develop and maintain large programs is to construct it from small, simple pieces, or modules.  This technique is called divide and conquer.  Modules in JavaScrit are called functions. JavaScript programs are written by combining new functions that the programmer writes with prepackaged functions and objects available in JavaScript. The prepackages functions

more..

5.5.7 for.. in Statement

The for … in statement is used to loop (iterate) through the elements of an array or through the properties of an object.  The code in the body of the for .. in loop is executed once for each element/property. Syntax: For(variable in object) {         Code to be executed } Example: <html> <body> <script

more..

5.5.6 for repetation statement

The Javascript For loop resembles the for loop you might have seen in many other programming languages.  It is used when you need to do a set of operations many times, with an increment of some kind after each run through the block of code. Syntax: For (var = startvalue; var<=end value; var=var+increment) {         

more..

5.5.5 while..do statement

The while loop is used when you want the loop to execute and continue executing while the specified condition is true.  It tests the condition at the beginning of the loop, itself if the condition is true it executes the statements within the body of the loop or else it terminates. <html> <body> <script type

more..

5.5.4 do..while statement

The do..while statement tests the condition after the loop body executes, therefore the loop body always executes at least once.  During testing, if  the condition is true it repeats the statement for the specified number of times or it terminates the loop execution. Syntax: Do Statement; While(condition);   Sample Programe: <html> <body> <script type =”text/javascript>

more..

5.5.3 Switch multiple selection statement

Previously we discussed the if  single-selection statement and the if ..else double selection statement.   In certain situations a variable or expression is tested separately for each of value it may assume and different actions are taken for each value.  JavaScript provides the switch selection statement to handle such decision making. Syntax: Switch(n) { Case1: execute

more..

5.5.2 Nested If..else

If (condition1) { Code to be executed if condition 1 is true } else if (condition2) { Code to be executed of condition 2 is true } else { Code to be executed if condition 1 and condition 2 are not true } • If there is several levels of indentation, each level should be

more..

5.5.1 If…else Statements

If…else  statement performs an indicated action only when the condition n evaluates to true; otherwise that action is skipped.  The if…else selection statement allows you to specify that a different action is  to be performed when the condition is true than when the condition is false. Syntax If (condition) { Code to be executed if

more..

  • Email Subscription

    Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.

    Subscribe Here

  • Twitter Followers

    1314 people follow tut2learn
    gyogynovenyinfo gyogynov sahsvmrfsalem sahsvmrf vyasurendra vyasuren mohd_umar_afzal mohd_uma gagandhammi gagandha svpkiran svpkiran
Popup Dialog Box Powered By : XYZScripts.com
  • RSS
  • Facebook
  • Google+
  • Twitter