Skip to content

Instantly share code, notes, and snippets.

@Sarfarazsajjad
Created June 15, 2020 05:45
Show Gist options
  • Save Sarfarazsajjad/1df6867825325635f390c838611474f9 to your computer and use it in GitHub Desktop.
Save Sarfarazsajjad/1df6867825325635f390c838611474f9 to your computer and use it in GitHub Desktop.
learning javascript
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