The most viewed posts

About Desktop Icons in Windows Computer

How to clean up Windows Computer

Driver Booster

CCleaner

Advanced System Care

Myanmar font and keyboard for Windows

Registry Reviver

How to make a computer secure and run faster

some (JavaScript Array Method)

Terms and Conditions

The most viewed items

Desktop Hard Disk

HP ProBook 430

Dell Inspiron 5559

External Hard Disk

SONY Playstation Portable

Laptop RAM

Laptop

ZilaStar ICT Dec 11 2019, 11:00:06
Category : JavaScript Tutorials

JavaScript Variable Naming

/*
//the first character is letter
var myName = "I am Thet Naing Win.";
document.write(myName);

//the first character is underscore
var _myAge = "I am 35 now.";
document.write(_myAge);

//the first character is number. this is not valid naming.
var 1_myAge = "I am 35 now.";
document.write(1_myAge);

var myName1 = "I am Thet Naing Win.";
var myAge1 = "I am 35 now.";
document.write(myName1);
document.write(myAge1);


//we can not use punctuation marks
var myName, = "I am Thet Naing Win.";
document.write(myName,);

var _myAge = "I am 35 now.";
document.write(_myAge);

//proper variable name
var myNmae = "I am Thet Naing Win.";
document.write(myNmae);

//we can use very long variable name. but this is improper variable name
//so we should care in variable naming
var iamthetnaing = "I am Thet Naing Win.";
document.write(iamthetnaing);

var while = "I am Thet Naing Win.";
document.write(while); */

  • Comments:

    No comment to show.

    To Contact
    Available Services
    Terms and Conditions