let join = n;
let displayRating = r;

if ( join >= 10) {
  let hiddenRating = displayRating;
 } else {
  let argument = 100*(10 - n);
  let hiddenRating = displayRating - argument;
 }

console.log(hiddenRating);


