what is the difference between var and let in javascript

what is the difference between var and let in javascript

In this article, We’ll see what is the difference between var and let in javascript ? Below an example will clarify the difference. The var statement declares a variable, optionally initializing it to a value. Demo: Statement – Var The let statement declares a block scope local variable, optionally initializing it to a value. Demo:Read more about what is the difference between var and let in javascript[…]

How to create custom blade directive in laravel ?

How to create custom blade directive in laravel ?

In this article, We’ll see how we can create a custom blade directive in laravel. Blade allows you to define your own custom directives using the directive method. In laravel’s documentation, a new blade directive creates under boot method in AppServiceProvider.php, but we’ll create a new provider, so lets create it using artisan command. addRead more about How to create custom blade directive in laravel ?[…]

Why use !== FALSE to check string contains a specific word in php?

Why use !== FALSE to check string contains a specific word in php?

In this article, We’ll see why we use !== FALSE to check sub-string is located inside another string. strpos — Find the position of the first occurrence of a case-sensitive substring in a string. strpos returns the position of a string inside another. if the string is not found, it returns false and return 0Read more about Why use !== FALSE to check string contains a specific word in php?[…]

Javascript – What is the difference between undefined and null ?

Javascript – What is the difference between undefined and null ?

In this article, we’ll see what is the difference between undefined and null in javascript. undefined: means a variable has been declared but has not yet been assigned a value. Below an example: null: means an empty or non-existent value. It can be assigned to a variable as a representation of no value. Below anRead more about Javascript – What is the difference between undefined and null ?[…]