Created
June 15, 2020 05:45
-
-
Save Sarfarazsajjad/1df6867825325635f390c838611474f9 to your computer and use it in GitHub Desktop.
learning javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 1; | |
let b = 2; | |
var c = "hello"; | |
var d = "a"; | |
d = 5; | |
d = 5.6; | |
var f = 5 + a; | |
console.log('f=',f); | |
let obj = {}; | |
obj.a = 1; | |
console.log(obj); | |
obj.merimarzikaobject = 5; | |
console.log(obj.merimarzikaobject); | |
function myFunction(){ | |
console.log('myFunction activated'); | |
} | |
console.log(myFunction() == undefined); | |
myFunction.yo = 145; | |
console.log(myFunction); | |
let yoyofunction = myFunction; | |
yoyofunction(); | |
function aFunctionCaller(callFunction){ | |
callFunction(); | |
} | |
aFunctionCaller(yoyofunction); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment