Say we have
var x =3;
var y = 4;
var z = x*y;
console.log(z);
How do we know it won't print an undefined variable z?
- If it is asynchronous, is there a function used to assign values to variables with a callback so we can be certain of their values when using them.
- If it is synchronous, then when loading modules like
var express = require('express');
Wouldn't that be pretty slow when you load a few of them in one script?