Checking for missing parameter in function
<p>Is this the correct way to check for a missing parameter in a function? Would this work in all browsers? How about IE?</p>

<pre><code>function getName(name){
    name = name != null ? name : "default";
    return name;
}
</code></pre>
