-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile03.js
More file actions
39 lines (26 loc) · 783 Bytes
/
Copy pathfile03.js
File metadata and controls
39 lines (26 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"use strict";
// rules for naming variables declare
// i can't start with number
// example :=
// 1vaule (invaild)
// var 1jitu = ("this is inavaild")
// vaule1 (vaild)
var jitu1 = 4;
console.log(jitu1 ** 3);
// only can use only underscore (_) and dollar sign ($)
// var jitu_sa = ("checking whether vaild or not ");
// console.log(jitu_sa);
// _firstName (vaild)
// first_name (vaild)
// snake case writing (_)
// first$name (vaild)
// var $jitusa = ("checking whether vaild or not ");
// console.log($jitusa);
// $firstName (vaild)
// can't use spaces
// var first name = "checking whether vaild or not ";
// first name (invaild)
// convention
// start with small latter and use camelCase
var firstName = ("checking whether vaild or not ");
console.log(firstName);