Check out web design courses in Delhi to learn both JS and HTML.
Debugging is the princesses of solving errors in the code. In other words you can say that with the help of debugging a developer can find problems easily and can also solve them faster. Logical means related to the logic and syntactical is related of the syntax error like missing semicolon and etc. So the first bug is harder to solve. In this case we use debugging. There are many ways to Debug the code lets understand them one by one.Using console.log() : Console.log() is a method of debugging. If you want to check any value then you can pass it into console.log(). For better understanding let’s see an example:let a = 5;let b = ‘Hello’;let c = a + b;
// Check value of c by using console.console.log(c);
Output : undefined
In this example you can see that the proper way of using debugger in the code.
If you want to learn more about JS then it is better to check its courses here: