We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 740a49b commit 0907b46Copy full SHA for 0907b46
revision/rev2.js
@@ -20,11 +20,27 @@ function abcd(){
20
let f=5 // braces scoped
21
console.log(e,f,d)
22
}
23
- console.log(e,f)
+
24
25
26
abcd()
27
28
29
// var add itself in window obj which is highly insecure for data privacy thats why let and const
30
-//were introduced which if defined in script.js will not add themself in window obj
+//were introduced which if defined in script.js will not add themself in window obj
31
32
+//simple function
33
+let fun=function(){
34
+ console.log("one way of defining function")
35
+}
36
+fun()
37
38
+function xyz(){
39
+ console.log("second way of defining function")
40
41
+xyz()
42
+//arrow function
43
+let erg=()=>{
44
+console.log("this is arrow function")
45
46
+erg()
0 commit comments