Text Details
|
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>'); });
—
Breakpoint
(other)
by http://www.javascriptbook.com
|
| Language: | English |
This text has been typed
10 times:
| Avg. speed: | 61 WPM |
|---|---|
| Avg. accuracy: | 96.3% |