Tag: JavaScript

  • Useful Object Properties

    Optional Chaining Optional chaining if extremely useful, it allows us to call a specific object key and if it’s undefined or null, it returns undefined instead of throwing an error. Optional Chaining In PHP If you’re unsure what the @ is doing in this example I mention it in my article about Destructuring Assignment.

  • Destructuring Assignment

    Destructuring Assignment

    One thing I love and use all the time is Destructuring Assignment. You can do this in PHP, JavaScript, on any object or array and if often used in JavaScript frameworks like React, example: Before we go on, I’d like to mention that all examples are in JavaScript, I do have a few examples in…