Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve (product, count) {
- let products = {'coffee': 1.50, 'water': 1.00, 'coke': 1.40, 'snacks': 2.00};
- console.log(`${(products[product] * count).toFixed(2)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement