I’ve been using nodejs as my backend. In nodejs you use ‘views’ as the frontend instead of html files. Views are very similar to html files, but I was wondering if there is a way to code javascript inline on a view.
I tried code inline javascript the same way you do on html file. but it did not work for the view (ejs file).