Sometimes we have to validate if the user has entered a specific pattern or not, this pattern is validated by matching it with its regular expression. To Find if any numeric value appears in a string: To Find if any…
Category: JS
Conditional operator problems in JavaScript?
Let me give you a simple logical problem:- What will be the output of console.log(1>0)? If your answer is true than you can proceed to next problem, if your answer is false go visit your Mathematics teacher. Now What will…
How To measure Execution time in Node?
To measure execution time in Node you can go with below code. IF you still face any issue or help feel free to connect with us. Use console.time() and console.timeEnd()
How To Add toast.js?
As Nice, as it looks for notification easier it gets if you are familiar with JavaScript and have some experience in HTML. Firstly, we need to add the ‘.js’ and ‘.css’ file which are available on github link Second, you…