What's the difference between using `let` and `var` in Javascript?

Asked by Sumit Talwar ·
As I know both let and var are local variables, however, I'm as yet not exactly sure what is the difference between both. So, please explain What are the differences? When should (...)
0
3
1649

How to compare branches in GitHub?

Asked by Deepak Kumar ·
I'm looking for ways to compare multiple git branches.
0
1
293

How to make Git “forget” a file that was tracked now it is in .gitignore?

Asked by Sohail ·
In my git repository, there is a file that was being tracked by git. However, now the file is on the .gitignore list. That file keeps appearing in git status after that file is (...)
0
3
788

How to change permissions for a folder and all its sub folders and files in one step in Linux/Ubuntu?

Asked by Harpreet ·
I would like to change the permissions of a folder and all its subfolders and files in one step (command) in Linux. I have already tried the following command, but it only works (...)
0
2
542

How to remove a property from a JavaScript object?

Asked by Daniyal Mill ·
Here I have a object: let myObject = { "item1": "value", "item2": "value", "item3": "value" }; What is the best way to remove the property from this myObject variable? (...)
0
2
290

What is the difference between `var functionName = function() {}` vs `function functionName() {}`?

Asked by Sohail ·
What are the purposes behind utilizing these two different methods and what are the upsides and downsides of each? Is there anything that can be done with one method that isn't (...)
0
1
625

How to verify that a string has a substring in JavaScript?

Asked by Sohail ·
Is there any method to check if string has a substring something like String.contains('some string').
0
2
261

How to Install and Configure Laravel framework with Nginx on Ubuntu?

Asked by Deepak Kumar ·
I'm unable to setup latest laravel with Nginx on Ubuntu. What should I do to set up a complete Laravel framework with Nginx on Ubuntu 20.04?
0
1
267

How to Upload Multiple Images and Files in Laravel with Validation?

Asked by Deepak Kumar ·
How to implement Laravel file upload functionality with multiple file and image uploading option.
0
1
226

How to remove a specific item from an array?

Asked by Sohail ·
Is there an easy method to delete a particular element from an array? I'm searching for something like this: array.remove(number);
1
2
218