Thursday, 11 June 2015

JavaScript Debugging and Testing

You can debug java script  by using two ways 

  • By logging into DevTool console using console.log()
  • Using debugger key word
<script>
     callDebugSentence();
    function callDebugSentence(){
             debugger;
            console.log("After debugger sentence");
     }
</script>

No comments:

Post a Comment