Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Variables in Examples of Javascript 1
1035 Views
Definition 

JavaScript statements are composed of:

Values, Operators, Expressions, Keywords, and Comments.

whole numbers / string / char / floating /boolean (true/false)
var a = 10;
var b = "Sarathy";
var c = false;
var d = 'x';
Examples
	<!DOCTYPE html>

	<html lang="en-US">

	<head>

	<meta charset="UTF-8">

	<title>internal</title>

	 

	</head>

	<body>

	<script>

	var a=10;b=15;var c;var e;var f;

	c=a+b;

	e=b-c;

	f=a*b;

	document.write("c="+c+"<br>");

	document.write("e="+e+"<br>");

	document.write("f="+f);

	</script>

	</body>

	</html>
Comments 
//-single line

/* multiple line
comments*/
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details