Summary

You have now completed the introduction to the fundamental concepts related to functions in JavaScript. This has laid the groundwork that will allow you to quickly grasp the concepts of object-oriented JavaScript and the patterns used in modern JavaScript programming. So far, we've been avoiding the OO features, but as you have reached this point in the book, it's only going to get more interesting from here on in. Let's take a moment to review the topics discussed in this chapter:

  • The basics of how to define and invoke (call) a function using either a function declaration syntax or a function expression
  • Function parameters and their flexibility
  • Built-in functions-parseInt(), parseFloat(), isNaN(), isFinite(), and eval()-and the four functions ...

Get Object-Oriented JavaScript - Third 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.