how to make a type undefined in javascript code example Example: javascript type of undefined if (typeof x == 'undefined'){ // instructions }