Record your races with a typeracer account:
Create Your Account- Save your race history and scores.
- Customize your profile and racecar.
- It’s free, why not?
Race Result Details |
Racer | Shoemaker-Levy 9 (atthetop) |
Race Number | 74 |
Date | Thu, 1 Nov 2018 18:31:01 +0000 |
Universe | code |
Speed | 59 WPM Try to beat? |
Accuracy | 96.5% |
Rank | 2nd place (out of 3) |
Opponents | styrofoam (1st place) uchihalol (3rd place) |
Text typed:
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
(see stats)
|