mirror of
https://github.com/FranP-code/API-and-CRUD-for-Ecommerce-with-Node.js-FRONTEND.git
synced 2025-10-12 23:52:33 +00:00
11 lines
228 B
JavaScript
11 lines
228 B
JavaScript
const calculateTotal = (totalPrice) => {
|
|
|
|
const totalElement = document.querySelector(".column.second-column h3 span")
|
|
|
|
console.log(totalElement)
|
|
totalElement.innerText = totalPrice
|
|
|
|
}
|
|
|
|
export default calculateTotal
|