Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 242 Bytes

calculate-fruits-average-catchup.md

File metadata and controls

9 lines (7 loc) · 242 Bytes

You have 6 apples and 4 pears, each apple cost $2.5 and each pear cost $1.25, what is the average price per fruit.

let costOfApple = 1;
let costOfPear = 1.25;
let averagePrice = ;
console.log("Average price is $" + averagePrice);