javascript assignment operator if undefined

JavaScript
const variable2 = variable1  || 'new';

Source

Also in JavaScript: