Questions on JavaScript core concepts understanding