I registered the book at Pearson and did not find any link to download the code used in the samples in the book. Is the code available elsewhere? I wrote the code on page 43 into Brackets and it did not work. Neither alert displays in the browser. I double checked the code and it appears correct.
I think the code needs to be written slightly different for this section: if (speed) >= speedLimit)Using the >= will result in an alert that a person is speeding if they are traveling at a speed of 55 because that is equal to the speed limit. I think it should only use the >
Below is my code: