#difference
Read more stories on Hashnode
Articles with this tag
What is innerText? The innerText method is used to get the text within the text excluding the tag itself. It avoids the tags within it and only return...
Both methods console.log() and console.dir() are used to display contents in the console of the browser. Console.log() The console.log() method prints...