console.log does not work for me when I place it in a function in public/javascripts folder.
My current node.js folder structure is:
- views
- routes
- public
- javascripts > utils.js
In utils.js, i have this function
function goToGoogle () {
alert ('Hello World');
console.log('Hello World');
}
The alert() command works fine, but not the console.log
I've tried the console.log in other js files in the routes/ directory and it outputs to the terminal just fine.
Any idea? Thanks