At 6:15, unfortunately null != false in JavaScript. In fact that's undefined == null.
John uses this in the isPrime() function at 14:54. When the cache doesn't contain an answer, the value obtained from isPrime.answers[num] is not null but undefined actually. So his code works because he uses loose inequality (!=) which treats null and undefined as equals. With strict inequality (!==), he would have written isPrime.answers[num] !== undefined, which is faster BTW.
javascript is alrite, but i seem to get my sites working without it javascript validation. After using jQuery though, it's amazing. I might get into advanced javascript.
This is the best video I have yet seen, on John Resig explaining Javascript and JQuery. It is the perfect complement to a first reading of the book, "Javascript: the Good Parts". I very much appreciate the way this video has been carefully edited so that when John shows an example on the projector, the video cuts away to a slide that shows what John was actually projecting. The sound quality is excellent. This is a first rate video, worth watching more than most.
This has been flagged as spam show
At 6:15, unfortunately null != false in JavaScript. In fact that's undefined == null.
John uses this in the isPrime() function at 14:54. When the cache doesn't contain an answer, the value obtained from isPrime.answers[num] is not null but undefined actually. So his code works because he uses loose inequality (!=) which treats null and undefined as equals. With strict inequality (!==), he would have written isPrime.answers[num] !== undefined, which is faster BTW.
bgandon 1 month ago
Comment removed
bgandon 1 month ago
You don't teach sound recording at this college then...? So unpleasant to listen to.
TheMUSEism 2 months ago
stick your jquery up your ass
6580006247 3 months ago
The slides are behind. They aren't what is actually being shown. WTF?
goonew 3 months ago
5:47 He means type coercion. Also that whole slide and what he says is incorrect. He doesn't understand the different ways of typing very well.
F00dTube 4 months ago
A shame the audio and the screen are all messy...
Great tutorial, though! Helped a lot! :D
Just realized how jQuery is amazing!
lestatv3 6 months ago
Did he do a google search and CLICKED 'search'?
nahjos 7 months ago
Audio Levels? WTF. Brilliant guy though
NAccubens 7 months ago
Terrible sound quality.
MinervaJo3 8 months ago 8
This video has horrible sound.
duncanHaleck 8 months ago
javascript is alrite, but i seem to get my sites working without it javascript validation. After using jQuery though, it's amazing. I might get into advanced javascript.
halflifeproductionz 1 year ago
This is the best video I have yet seen, on John Resig explaining Javascript and JQuery. It is the perfect complement to a first reading of the book, "Javascript: the Good Parts". I very much appreciate the way this video has been carefully edited so that when John shows an example on the projector, the video cuts away to a slide that shows what John was actually projecting. The sound quality is excellent. This is a first rate video, worth watching more than most.
robertgloverjr 1 year ago 16