JavaScript debugging:

Two methods are used to debugging JavaScript code:

  • Using console.log

  • Debugger keyword

Ex.

<script>  

a = 10;  

b = 15;  

c = a * b;  

console.log(c);  

</script>  

Powered  by Codersarts