Week 8 7 Call 2
001function getFullPrice(fee, vat) { 002 return this.price + this.countryRate + fee + vat; 003} 004 005const price = { 006 price: 100, 007 countryRate: 20 008} 009 010console.log(getFullPrice.call(price, 20, 50)); 011
This site will be updated live during the sessions
001function getFullPrice(fee, vat) { 002 return this.price + this.countryRate + fee + vat; 003} 004 005const price = { 006 price: 100, 007 countryRate: 20 008} 009 010console.log(getFullPrice.call(price, 20, 50)); 011