Updated the style of the examples

* const/let instead of var
* classes
* pass our own eslint checks
This commit is contained in:
Steve Gravrock
2022-09-17 12:00:20 -07:00
parent 59848ca151
commit 44f331f43d
8 changed files with 78 additions and 79 deletions

View File

@@ -1,7 +1,6 @@
function Song() {
class Song {
persistFavoriteStatus(value) {
// something complicated
throw new Error('not yet implemented');
}
}
Song.prototype.persistFavoriteStatus = function(value) {
// something complicated
throw new Error("not yet implemented");
};