javascript !undefined code example Example: javascript assignment operator if undefined const variable2 = variable1 || 'new';