Hello Reader's If you are working on Javascript and want to get the count of array then you can use the syntax as below:-
var car = ["mode1", "model2", "model4", "model5"];
car.length;
output:
4
And if you want to get last element of array then you can use the pop() syntax
var car = ["mode1", "model2", "model4", "model5"];
a.pop();
Output:-
model5
0 Comment(s)