JSFiddle - React, Tailwind, and code Playground

by dmitri_pavlutin

JavaScript

function double(number) {
   // temporal dead zone for TWO constant
   console.log(TWO); // ReferenceError: TWO is not defined
   const TWO = 2;
   // end of temporal dead zone
   return number * TWO;
}

double(5);