A of lot things in Document Object Model (DOM) JavaScript are zero-based, meaning the 1st is zero, the 2nd is 1, the 3rd is 2, etc.
Share this post
Zero-based Indices
Share this post
A of lot things in Document Object Model (DOM) JavaScript are zero-based, meaning the 1st is zero, the 2nd is 1, the 3rd is 2, etc.