Created
November 25, 2020 18:38
-
-
Save appoll/a3779b39c3047089a7d47d5ea80dd804 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let book1 = { | |
title: "Gone with the wind", | |
price: 30 | |
} | |
let book2 = { | |
title: "The godfather", | |
price: 40 | |
} | |
// E2. Write a function that takes two parameters: a book and a number (percentage): | |
// 2.1 Increases the price of the book with that percentage | |
function increasePriceByPercentage(book, percentage){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment