Category : tags

<% let myString = "this is a string %> with special characters"; let myOtherString = "this is a string <% with special characters"; // Do something %> I need to use these special characters in my JS string <% and/or %>. But EJS template would return errors: Could not find matching close tag for "<%" ..

Read more

I know it’s possible because I’ve seen code that seemed to do this. I don’t understand why it works. Here is a portion of the code in question: this.el = document.getElementById(‘tasks’); this.tasks = []; //the following function displays all results or the ‘R’ead in CRUD this.FetchAll = function(){ var data = ”; if(this.tasks.length>0){ for(let i ..

Read more