the error randomly appeared in console and I have no idea what’s causing it. because thesite is treating the line of code as if it were a function, I cannot run my project.
this is the only line of code I have that utilizes the
Good point. I use it because I don’t deal with any high security stuff. For personal projects (like a game), I use innerHTML because that’s nature for me. This guy was probably making a game judging by his variable names, but thanks for the tip!
but there’s no difference between settinginnerText or textContent.
I use innerHTML when necessary for data that I receive from the backend.
But @anon45021817 do note that textContent is also usually faster than innerHTML because it doesn’t have to parse
@anon45021817@LuisAFK@UMARismyname Please keep discussion on topic and related to this topic. If you wish to discuss more please make a topic in #general or message each other.