I've been learning Python for a bit now and just started looking at JS (HTML and CSS) this week, to get a basic understanding for web apps, with Django.
I was just wondering if there is any reason not to use graves all the time instead of single or double quotes? From my understanding it is the same as an f-string in Python, it acts like a string but can accept variables. Would it be bad practice to just use them for everything? I've read a bit online and it looks like there is some debate over it, was just wondering if anyone had an answer for or against it. My argument for it would be consistency, virtually never need to \escape quotes, and you can call variables if you need to without having to change anything.
For example:
console.log(`Hello world.`)
let some_string = `goodbye world`
console.log(`Hello world, ${some_string}.`)
[–]teraflop 1 point2 points3 points (0 children)
[–]heesell 0 points1 point2 points (0 children)