Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var xTick = document.getElementsByClassName('some class name')
  2.  
  3. console.log(xTick)
  4. output:
  5. HTMLCollection []
  6. > 0: text
  7. > 1: text
  8. > 2: text
  9. ...
  10. > 8: text
  11. > 9: text
  12. length: 10
  13. > __proto__: HTMLCollection
  14.  
  15.  
  16. console.log(xTick.length)
  17. output: 0
  18.  
  19.  
  20. console.log(xTick[0])
  21. output: undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement