/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function foo(a, b) { a = typeof(a) != 'undefined' ? a : 42; b = typeof(b) != 'undefined' ? b : 'default_b'; //... }
Comments
