Click to read this article –
Click Image to read First Tutorial
?The escape sequence starts with a backslash (\), followed by another character.
Number 2: Adding Strings
?The + operator can be used to add string variables
- – txt1 = “Hello”;
- – txt2 = “World”;
- – txt3 = txt1 + txt2;
- = “HelloWorld”
?Remember to add spaces between words
- – txt4 = txt1 + “ “ + txt2;
- = “Hello World”
?If you add a number and a string, you will get a string e.g. “4”+5 = 45
?Arithmetic, Equality and Relational Operators
?The arithmetic operator + is used to add values together.
Number 4: Comparison Operators
Number 5: Arithmetic Operators
Number 6: Keywords
?There are about 50 reserved words which have a predefined meaning in the language. Some of these include
– if ….
Full list http://aptana.com/reference/api/JSKeywords.index.html
Number 7: Conditional Structures
When you write code, you want to perform different actions for different contexts.
– if statement –
use this statement to execute some code only if a specified
condition is true
– if…else statement –
use this statement to execute some code if the condition is true and another code if the condition is false
– if…else if….else statement –
use this statement to select one of many blocks of code to be
– switch statement –
use this statement to select one of many blocks of code to be executed
That’s all folks