Set default value of a function argument
An example showing how to set default value of a function argument using Tizen 2.3.
var def = function(a, b) {
if (a === undefined) {
a = 5;
}
b = b || true;
console.log(a, b);
};
def();