concept average in category sails

appears as: n average, verages, average
Sails.js in Action

This is an excerpt from Manning's book Sails.js in Action.

  • How do you differentiate in the UI an average of many users’ ratings and a particular user’s rating?
  • You’ll update the individual number of stars in the rating model. Because the average number of stars is calculated and not stored, you need to first get all the ratings for the tutorial and then calculate the average by iterating over them. Next, if no rating exists, you’ll create a new one in Sublime with the following code.