(function () {
// code here
})();
window.addEventListener('load', function() {
// code here
});
const implicitReturn = (prop) => ({ name: 'hehe', ...prop });
const explicitReturn = (prop) => {
return {
name: 'hehe',
...prop
}
};