HTML and CSS Reference
In-Depth Information
Listing E.6. Mixing static and dynamic content in app.js
Step 3: Test in the browser
Start Node with your new app.js file as you did in the previous examples, and load the page
in the browser. Each time the page gets refreshed in the browser, the variable should get
incremented once. You can expect the number on the page to increase by one with every
page load. Let's try it in real time in a few browsers. Figure E.2 shows the results.
Search WWH ::

Custom Search