The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version |
Location |
Description |
Submitted by |
Date submitted |
|
|
The result in the exercise for chapter 5 for
sumAToB(0, -15);
// //=> 120
is wrong. It should be -120. Seems like a typo. Test passes in Jasmine Spec runner and the test indicates the result is -120.
// Write a function called `sumAToB` so that it accepts two parameters
// `a` and `b` and sums the numbers between `a` and `b` inclusive. Note
// that `a` may be larger than `b`, in which case you'll need to work
// backawards.
//
// sumAToB(10, 20);
// //=> 165
//
// sumAToB(0, -15);
// //=> 120
//
// sumAToB(-10, 500);
// //=> 125195
//
// sumAToB(10, 10);
// //=> 10
// sumAToB("hello", "world");
// //=> inputs should be numbers!
//
var sumAToB = function (a , b) {
};
|
Per-Olav |
Jan 25, 2017 |
|
practice exercises |
in the practice exercises for Arrays , exercise getValuesAppearingTwice
the exercise specifies to :
Create a new function that returns an array of only the values from the first array that appear twice in the second array.
however the tests are only using 1 array as input.
|
Geoffrey Griffiths |
Feb 11, 2017 |
Other Digital Version |
1
4th exercise |
Doing the overview exercise for the chapter on while and for loops. In the practice.js file the fourth exercise: sumAToB.
the sum of all values between 0 and -15 should result in the negative number -120. unless you want to take the absolute values and do the calculations with that. In that case sumAToB(-10, 500) has the wrong outcome and it should be: 125205.
Up to this point in the course you have not yet told about Math.abs() so I guess you made a slight typo there.
So far I like the course.
|
Werner van Mook |
Jun 04, 2016 |