Function Expressions

 const sum=function(a,b){

    return a+b;
}
sum(2,3);

let greet=function(){
    console.log("hello");
}
greet();
greet=function(){
    console.log("Namasthe");
}
greet();

Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code