Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SYNTAX
- //Literals
- 10
- "Jane"
- //Variables
- var name = "Joe";
- const pi = 3.14;
- const myName = "Patrick";
- const milkPackage = 1000;
- let x = 10;
- let y = "John";
- // Assignment operator
- let n;
- n = 7;
- let m = 8;
- // This is for one line of commets.
- /* This is for two
- lines of comment. */
- function sum(h,j) {
- let calcul = 0;
- calcul = h + j;
- return calcul;
- }
- console.log( sum(3,5) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement