JSFiddle - React, Tailwind, and code Playground

by Hugo Carneiro

JavaScript

var variableOne;
var variableTwo = 12;

function change() {
  variableOne = 1 * 'undefined';
  variableTwo = 34;
  
  alert('variable: ' + variableOne);
  alert('variable 2: ' + variableTwo);

  if (!variableOne) {
    alert('ONE');

    return;
  }
  
  alert('TWO');
}

change();