JSFiddle - React, Tailwind, and code Playground

by bogdan_vq

JavaScript

function ext() {

_.log( typeof ext === 'function' );
_.log( typeof int === 'function' );
_.log( typeof a === 'number' );
_.log( typeof b === 'number' );
_.log( '-------------------------' );

var a = 1;




_.log( typeof ext === 'function' );
_.log( typeof int === 'function' );
_.log( typeof a === 'number' );
_.log( typeof b === 'number' );
_.log( '-------------------------' );

function int() {




_.log( typeof ext === 'function' );
_.log( typeof int === 'function' );
_.log( a );
_.log( b );
_.log( '-------------------------' );

var b = 2;



_.log( typeof ext === 'function' );
_.log( typeof int === 'function' );
_.log( a );
_.log( b );
_.log( '-------------------------' );

}

int();
_.log( typeof ext === 'function' );
_.log( typeof int === 'function' );
_.log( typeof a === 'number' );
_.log( typeof b === 'number' );
_.log( '-------------------------' );
}
ext();
_.log( typeof ext === 'function' );
_.log( typeof int === 'function' );
_.log( typeof a === 'number' );
_.log( typeof b === 'number' );
_.log( '-------------------------' );