title: Is there a way to put a specific value instead of a value that is originally needed to be but is undefined in javascript?
body: <p>I want to make a variable a specific value, when a value originally wanted to put is undefined</p>
  <p>Like this in shell script</p>
  <p><code>VALUE=${VALUE1:-0}</code>
  This means, if there is no VALUE1, then VALUE = 0</p>
  <p>How can I put a specific value instead of undefined?</p>
  <pre><code>data() {
      return {
        value1: 0,
        value2: process.env.VALUE2 | '', // If process.env.VALUE2 is undefined then make value2 ''
      }
  },
  </code></pre>