Debugger,Keyword,Javascript

Erhan 8/26/2016 0

Debugger Keyword Javascript

JavaScript
 var $form, width, height, area;
$form = $('#calculator');

$('#calculator').on('submit', function(e) {
  e.preventDefault();
  console.log('Clicked submit...');

  width = $('#width').val();
  height = $('#height').val();
  area = (width * height);

  if (area < 100) {
    debugger;             // A breakpoint is set if the developer tools are open
  }

  $form.append('<p>'   area   '</p>');
}); 

Report Bug

Please Login to Report Bug

Reported Bugs

Comments

Please Login to Comment

Comments