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