copy Function constructor in Javascript -


i'd substitute function constructor fn that

function hello(){ console.log("hello") } 

will give same result as

fn lazyhi(){ console.log("i'm lazy function!") } 

i'm interested test own understanding of javascript inheritance patterns, i'm not sure can done @ "root" level.

you cannot replace "function" keyword own "fn" keyword. syntax error.


Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -