Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
let price = model.volume * 0.0002;

if (user.email && user.email.endsWith("@3yourmind.com")) {
  price = 0.9 * price;
}
price;  // Last line contains the final price

...