Chapter 15. JavaScript Functions, Objects, and Arrays
Just like PHP, JavaScript offers access to functions and objects. In fact, JavaScript is actually based on objects, becauseâas youâve seenâit has to access the DOM, which makes every element of an HTML document available to manipulate as an object.
The usage and syntax are also quite similar to those of PHP, so you should feel right at home as I take you through using functions and objects in JavaScript, as well as conducting an in-depth exploration of array handling.
Get Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.