100 Days of Code Day 34
Today’s exercise was Grade School you keep track of a list of students each having a name and grade level. Don’t allow students with duplicate names. Return the students of a given grade sorted by name, or the whole thing sorted by grade then name.
I did go looking for a Javascript version of C#’s Compare() function. I found a compareTo, and tried using it unsuccessfully. Found out I clicked on a link to a Java page not a Javascript page (ouch rookie mistake). Then I found localeCompare() which worked as expected but just for strings.
Do you ever put stuff somewhere safe so it doesn’t get lost, but then the spot was too obscure and you can’t find it. I did that with my GameBoy book but I did figure out where I put it and brought it along today. Tonight I finished two more examples in the sound chapter. (I hope I can remember this stuff) The apps were length which controls how long a sound plays, and volume that says if the sound is coming from the right or the left and how loud. Still have about two thirds of the chapter left.
