This is very basic tutorial of javascript where you will learn how to check if string contains array of substrings. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <script src="script.js"></script> </body> </html>
In this very small tutorial, you will learn about very basic difference between logical OR and Operator. let a = 0; let b = {}; let c = 'World'; let result = a || b || c; console.log(result); <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head>
In this tutorial, you will learn how to use declare keyword to get rid of compilation errors in case of missing type definition file for any javascript library. I have tried my best to keep it pure basic and simple as much as possible. index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,
Recently, while working on one of my project, I encountered the following error and I will let you later how actually I fixed it. This error is basically about angular production mode. angular is running in the development mode. call enableprodmode() to enable the production mode. To enable production mode in Angular 6, Angular 7