Often times you get data from many different sources. It would be helpful to know the length of the data. That would help you determine whether to go in direction A or B.
Learn to easily find the length of your data whether it’s a string, object or array. Author : Code With Mark 205