I have this code:
var phrase = function (variable, defaultPhrase) { if (typeof variable === \"undefined\") { return defaultPhrase; } else
Shouldn't it be:
var phrase = function (variable, defaultPhrase){ if(variable == undefined){ return defaultPhrase; }else{ return variable; } }