JSFiddle - React, Tailwind, and code Playground

by akang2

JavaScript

var x = 'foo';

if (x == 2) {
    //do something
    console.log ('you are 2');
} else if (x == 3) {
    console.log('you are 3');
} else {
    console.log('you nothing it');
}