JavaScript Tutorial
JavaScript is a client Side Script Language only JavaScript used for client side validation
JavaScript not complied but translated the all browsers
JavaScript Easley understanding all people
JavaScript most of many important any events functions
JavaScript case sensitive
Where Is JavaScript Used:
Client side validation
Dynamic drop down menus
Displaying data and time
Displaying all alert box
Displaying clock etc…
JavaScript Prerequisite:
JavaScript Learn Before You Must Complete Learn Basic Knowledge Of HTML
JavaScript Example Code:
Welcome to JavaScript
document.write("Hello JavaScript Learners");
JavaScript where to put place:
First one head tag mention
Second one with in body tag put JavaScript Code
Third one External Js file coding
Step1:head tag use JavaScript
Alert(“Hell Welcome to JavaScript Beaginers”);
Step2: within body tag
=”text/javascript”>
alert(“Welcome to JavaScript Beginers Advanced tutorial”)
Step3: External JS File:
=”text/javascript” src=”example.js”>
What is External JS File:
External .JS file any where any place use file JavaScript its easily access browsers browser like .js file its codeless high speed
External JavaScript must saved .js extension file
JavaScript Some event Function Functions:
function msg(){
alert("Welcome to Javascript Begainers");
}
Welcome to JavaScript
JavaScript Command Line:
JavaScript it’s a easy way one the meaningful way like you type any comments the important
code and understanding developers easily find code how to use code
Examples:
Var a =20; // assign the a one variable
Var b=30; // b one variables
Var c=a+b; //two variable value store one common variable print output
Output:
30;
JavaScript Types of Comment Lines
Single line comments
Multi level comments
For Examples Single Line Commends
// This Single line commands
/**/ This Multiple line commands
The most very important the JavaScript commends line work for the tag only
This post first appeared on WebDesign | SEO Services Full Tutorial | PHP Full Tutorial | Javascript Full Tutorial|HTML,CSS,CMS, please read the originial post: here