Check Array and Object Values in JavaScript with console.dir()

added by JavaScript Kicks
9/10/2014 10:00:38 AM

57 Views

The alert() method in JavaScript is useful for quickly seeing what a variable contains as the program executes, but it has some limitations. It won't display the values stored in an array without creating a loop, for example. If you do create a loop, alert boxes can be aggravating since they each need to be confirmed separately. Luckily, there is another JavaScript method.


0 comments