This is called hoisting, and it makes your code execute at the first request.
Here are the steps to hoisting your JS and JSx code.
Open a new terminal window.
Type: node hoisting.js This will load the hoisting module.
You should see this: hoisting
In the hoising.min file, add the following code to the bottom:
hoisting (type=”application /js”) hoizing (type=text /js);