You can not only pass parameterized callbacks or multiple callback functions with JavaScript. But, you can also pass asynchronous callback functions to other functions in JavaScript. This is particularly helpful…
Pass first callback function inside second and second inside first in JavaScript | Example
Callback functions are a great way to pass around functionalities through the JavaScript code. One of the most powerful features of passing function to another function is that you can…
Pass multiple callback functions to a function in JavaScript | Example
You can pass a callback function to another function to use it later. But, you can also pass multiple functions as callback functions to another function. For example, let's say…
How to callback function with parameters in JavaScript | Example
JavaScript allows you to pass multiple parameters to a function which will be used as a callback. A callback function is basically a function which you can pass to another…
Break points not working / pointing to wrong line numbers in Vue.js?
Debugger make the life of developers a breeze. But at the same time, if they don't work properly, it can quickly turn into a nightmare. With a JavaScript framework like…
How to emit an event with parameters to parent component in Vue.js?
Vue gives you the flexibility to emit an event with parameters to a function present in the parent component. This is one of the most powerful, yet underrated features of…
Convert seconds to hours and minutes in Vue.js | Example
In this example, I'm going to show you how you can convert seconds to hours and minutes without using any library. Most of the time, duration is stored to the…
How to generate a random RGB color in Vuejs? Example
Vue.js is extremely powerful when it comes to quick dynamic style binding. And therefore, you can generate a random RGB color using Vue.js without using any 3rd party library or…
How to make text editable on click in Vue.js? Example
Sometimes you may want users to be able to edit content or text without having to show an input or text field. This comes useful in situations when some quick…
