Logica en Javascript lista

This commit is contained in:
2021-11-09 22:13:50 -03:00
parent 1199e0d3bd
commit 2cfecf769c
4 changed files with 508 additions and 64 deletions

View File

@@ -0,0 +1,56 @@
const traerProductosDeAPI = async () => {
return await {
product1: {
name: 'Coca-Cola',
price: 3.5,
img: './img/cocacola-lata.jpg',
category: 'bebidas'
},
product2: {
name: 'Coca-Cola Zero',
price: 3.5,
img: './img/cocacola-zero.jpg',
category: 'bebidas'
},
product3: {
name: 'Manzana Post.',
price: 3.5,
img: './img/postobon-manzana-lata.jpg',
category: 'bebidas'
},
product4: {
name: 'Agua Natural',
price: 3.5,
img: './img/agua-500ml.jpg',
category: 'bebidas'
},
product5: {
name: 'Naranja Post.',
price: 3.5,
img: './img/naranja-postobon.jpg',
category: 'bebidas'
},
product6: {
name: 'Tropical 2L',
price: 3.5,
img: './img/tropical-ecuador-botella.jpg',
category: 'bebidas'
},
product7: {
name: 'Piña Postobon',
price: 3.5,
img: './img/postobon-pina.jpg',
category: 'bebidas'
}
}
}
export default traerProductosDeAPI