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

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -