avadhesh18 / jsPrefer

0 stars 0 forks source link

[addnew] innerText vs textValue #11

Open avadhesh18 opened 9 months ago

avadhesh18 commented 9 months ago

/-/description Checking how fast getting the value of innerText is as opposed to textValue /-/html

Some text data

/-/js1 var x = document.getElementById('test').innerText; /-/js2 var y = document.getElementById('test').textValue;