Sign in

Those “Click to Copy” buttons are voodoo magic, don’t you think so?

Also watch this on my YouTube Channel:

A lot of modern websites have this handy little button that conveniently copies content to our clipboard. I’ve always wondered how does it work behind the scene. …

In short, Callback is a function that is passed to another function.

Also, view this tutorial on my YouTube Channel:

Callback functions exist everywhere in JavaScript. I’m pretty sure you have seen one of them around already.

// the 2nd argument of the addEventListener() function accepts a callback function…

A function can return all kinds of data. However, did you also know that a function can also return another function? 🤯

Watch this tutorial on my YouTube Channel:

Here’s a quick example:

function main(){
return function(){
}
}

Introducing Higher Order Function

The notion of Higher Order Function is one of the…

The this keyword is a peculiar one, and one that confuses a lot of developer.

This lesson is also available on YouTube:

In summary, the this keyword represents the calling context. And what do I mean by that? It means the calling context is object that calls the function

The difference between ‘var’, ‘let’, and ‘const’ in JavaScript — a detailed explanation.

Watch this tutorial on my YouTube channel!

Why not use ‘var’? This may be the question that you might be asking when you see the title of this article. That’s right! The var keyword might be one of the most painful features of the language. Over the years, with…

You’ve got a lot of files and nested files in a directory. However loading them 1 by 1 using require is simply too painful. Life is already tough, so please don’t do that to yourself.

In this tutorial, I will show you a few ways to achieve this.

Option 1: Using the infamous PHP iterator classes

PHP is…

Laravel provides a nice and convenient API for us to define our app routes. There are 2 ways to define a route group: the array syntax via group() or the method syntax. Personally I love the array syntax by calling the group() method provided by the Route facade. …

So you spent quite some time crafting your awesome React App 🎊, and it is time to publish it and share the love with everyone else. Github Pages is a free static site hosting service that works quite well with most use cases. …

JSON is the de-factor choice of transmitting data across the internet in the modern day. Its easy-to-read nature is pleasing for both human and computer.

When we are sending API requests we usually use JSON formatted string as our request payload. However, it has its flaws when it comes to…

Getting authentication right is not a straightforward task. Thankfully, Laravel has released an official authentication package called Laravel Fortify that took care of everything about authentication for us.

In summary, Fortify mainly consisted of 7 components:

  1. Login
  2. Logout
  3. Password confirmation
  4. Registration
  5. Password reset
  6. Email Verification
  7. 2-Factor Authentication

Laravel Fortify has…

Sam Ngu

Web Development. https://acadea.io/learn . Follow me on Youtube: https://www.youtube.com/c/acadeaio

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store