Pedagogy and This Site

To the Editor: I think it is more helpful to the site author for fixing this problem if the comment is in the JavaScript section, rather than General.

This is a great site but:

Why does it always seem to try to introduce some function, code, concept that has little to do with the particular exercise? Can’t you just make it simple, so that the basic concept is crystal clear??

Why introduce Math.floor in this example??? It causes a new student to be confused and have to spend time looking this up and somehow figure out its relevance.

Another example:

Re: compound assignment:

Why not put the code ANSWER, instead of telling us the result of the addition of the assignment variable and the number added to it. That doesn’t help explaining the concept.

var a = 11;
var b = 9;
var c = 3;

// Only modify code below this line

/*a = a - 6;
b = b - 15;
c = c - 1;

a -= 6;
b -= 15;
c -= 1;

The answer give for the hint , which is NOT HELPFUL. Where is the logic in this “hint?”

a should equal 5
b should equal -6
c should equal 2

Just sayin’.

5 % 2 = 1 because
Math.floor(5 / 2) = 2 (Quotient)
2 * 2 = 4
5 - 4 = 1 (Remainder)