Student.js
/**
     * Increments the popularities of all the workshops in the student's
     * preference list based on `this.popularityPoints`.
     *
     * Ignores null preferences.
     */
Increments the popularities of all the workshops in the student's
preference list based on `this.popularityPoints`.

Ignores null preferences.
Increments the popularities of all the workshops in the student ' s preference list based on ` this . popularityPoints ` . Ignores null preferences .
updatePopularities() {
        for (let i = 0; i < this.preferences.length; i++) {
            this.preferences[i].incrementPopularity(this.popularityPoints[i]);
        }
    }
updatePopularities ( ) { for ( let i = 0 ; i < this . preferences . length ; i ++ ) { this . preferences [ i ] . incrementPopularity ( this . popularityPoints [ i ] ) ; } }
Increments the popularities of all the workshops in the student's
 preference list based on `this.popularityPoints`.
Increments the popularities of all the workshops in the student ' s preference list based on ` this . popularityPoints ` .