Monday 13 April 2015

Type A/B, jQuery, Loops in JavaScript

1. Type A and Type B

The original Type A and Type B tests were funded by the tobacco industry and the link between heart disease and personality type is disputed.

2. jQuery

jQuery was originally called JSelect but because the domain jselect.com was taken, John Resig had to come up with a new name. Apparently, there was also Java SQL library also called jQuery, before JavaScript's jQuery, but they had let the domain lapse. Source: Annotations on an early version of jQuery by John Resig.

3. Loops in JavaScript

There are risks with hoisting and scope when using for-loops in JavaScript so in general it's better to use underscore's _.each function. However, for a simple loop and where response time is critical, creating _.range in order to use _.each outweighs the benefits.

No comments:

Post a Comment