<script type="text/javascript">
setTimeout(alert('1'), 1000);
setTimeout(() => alert('a'), 1000); // second setTimeout method
</script>
1) what is the meaing of "() =>" in the second setTimeout() statement?
Sometimes I see the () before the fat arrow => means the input argument and the statement after fat arrow => means the implementation, but for the above second setTimeout() method, seem the fat arrow is not this meaning, as setTimeout() really need two input parameter (callback function and delay time in milliseconds),
2) and in the above second setTimeout method, the statement after => is the input parameter of setTimeout(), not the implementation....