why javaScript behave like synchronous without web api call : I know javaScript is asynchronous by nature. So that when I call a function with web API It performs asynchronous.

    setTimeout(function(){
      console.log('1');
    }, 2000);

    console.log('2');

it will print  '2' then '1'

but when I run a loop like for loop and increase the iteration It executes synchrounous

	var first = function(){
		for(var i=0;i<=100000000;i++){
			if(i==100000000){
				console.log('first')
			};
		};
	};

	var second = function() {
		console.log('second')
	};

	var a = function() {
	    first();
	    second();
	}

    a();

It will print the first second respectively.

> So, is javaScript perform synchronously with native code