CSC 5750 Lecture Notes - Lecture 7: Ternary Operation, Switch Statement, Infinite Loop
Document Summary
Javascript statements manual coding that prints to the browser console using console. log. A javascript debugger using the browser"s javascript debugger to set breakpoints, watch variables, evaluate expressions, etc. Here are steps to perform debugging in google chrome and microsoft internet. Expressions include variable names and javascript statements: select tab sources, click a line number. To access the debugger, select tab sources. Use the debugging toolbar to control the debugger: select tab sources, click the line number containing the breakpoint. To view console log output, select tab console. To evaluate an expression: select tab console or sources, at the at angle prompt (>), enter the expression. To access the debugger, select tab debugger. To set a javascript breakpoint: select tab debugger, click a line number. Use the debugging toolbar to control the debugger: select tab debugger, click the line number containing the breakpoint. A block is a set of one or more statements. One statement, curly braces are not required.