Learning JavaScript tutorial – JavaScript Expressions and Operators
If you’re having problems with server load, maybe you should consider getting one of those dedicated servers.
JavaScript Expressions and Operators are very similar with most popular programming languages like C, C++, or Java. In this chapter we take an overview of the basic building blocks of JavaScript: operators, expressions.
JavaScript Expressions
JavaScript Expression is a combination of values, variables, operators, and functions that are interpreted (evaluated) as per the program logic define(develop) by JavaScript programmer. For example consider mathematical expression: 4+3 is an arithmetic and programming expression which evaluates to 7. The assignment expression x=4+3 also evaluates to 7 and assign that value to variable x. The expression is use to evaluate the the values for pre-define JavaScript program logic.
var intNum; //Expression to declare a variable
var intNum=10; //Expression to declare a variable with assigned initial value
var x=5, y=4, z=x+y; //Expressions to declared multiple variables
JavaScript Operators
JavaScript supports a variety of operators like arithmetic, logical and comparison etc. An operator is a function which acts on any number of operands (inputs) to produce a pre-define operation.




