HTML File trying to use JavaScript in Node.js
vedprad1 (732)

HTML File trying to use JavaScript in Node.js

I am using express and body-parser to parse an HTML file in Node.js. The problem is that whenever I run the file, the HTML shows up here, but the JavaScript code in the <script></script> tag is not running. Does anyone know why this is happening?

My repl can be found here.

You are viewing a single comment. View All
Answered by ryanhcode (90) [earned 5 cycles]
View Answer
vedprad1 (732)

@ryanhcode : You are right! For some reason, it was not working before. Anyways, Thanks!