Console log

Report a typo

Consider the following snippet of code:

const bonusAction = {
  value: 50
}

const saleAction = {
  value: 20
}

const friendAction = {
  value: 30
}

function getDiscount(friendAction) {
  value = saleAction;
  console.log(this.value);
}

["jacket"].forEach(getDiscount, bonusAction);

Type the number inside the console.log.

Enter a number
___

Create a free account to access the full topic