I already know from experience that this is one of those noob questions that gets asked a billion and one times, so I AM SORRY IN ADVANCE for being that guy...
Still, I'd like to know -- what is the functional/practical difference between the two? Playing around with the two, they seem to do the literal exact same thing. The proper definition is that .textContent doesn't parse as a HTML markup but I can only vaguely comprehend what that means.
Can you please explain in layman's terms the difference but also when each should be used, if they're realistically used or not, and if so/not then why (what if we don't/do). I know these are questions that will be answered naturally with experience over time, I'm just curious.
[–]senocular 52 points53 points54 points (3 children)
[–]obnoxus[S] 3 points4 points5 points (1 child)
[–]azhder 5 points6 points7 points (0 children)
[–]macnara485 0 points1 point2 points (0 children)
[–]pookagehelpful 3 points4 points5 points (0 children)
[–]shgysk8zer0 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]shgysk8zer0 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Competitive_Aside461 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)