Category: Javascript

  • Understanding Closures in Javascript

    Understanding Closures in Javascript

    Closures are one of the most powerful and often misunderstood features of JavaScript. They allow inner functions to access variables from an outer function, even after the outer function has returned. This unique behavior can be crucial when writing more modular, maintainable code. But… Alonso VazquezWeb developer with over ~6 years of experience. I am…

  • Document Object Model (DOM)

    Document Object Model (DOM)

    The Document Object Model (DOM) is a representation of the structure and content of a web page. This representation is as nodes or objects allowing programs to interact with the page and change the document structure, style and even content. A web page can be can be either displayed in a browser window or as…

  • Find the differences between two arrays with Javascript

    Find the differences between two arrays with Javascript

    Often on a day to day as a developer is very common to work with arrays, I’d say is one of the most used data structures and there’s a need to learn how to manipulate them. In this post, I’ll be explaning how to find the differences between two arrays of objects (this can be…

  • Create a phone mask on React.js w/o libraries

    Create a phone mask on React.js w/o libraries

    Recently I had to create a form that includes a phone number input. Such number input had to had some validations and an input mask to display properly the phone number. Nowadays there are a different npm packages that might help with this task (like react-input-mask), but from times to times, you want to do…