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