Using product detail information from this datasheet,
- Create a
products array from the products in the datasheet.
- Create a
product_price array from the product prices in the datasheet.
- Check the length of the product names in your products array.
- If the length of the product name is even, double the price of the product.
- If the length is odd, the product price should be halved.
- Print out the product prices for all the products using this format
The price of [product name] is [new product price]
- Ensure your PR is created with the task title as seen on the mobile App
NB: JavaScript should be the programming language of use for this task
Using product detail information from this datasheet,
productsarray from the products in the datasheet.product_pricearray from the product prices in the datasheet.The price of [product name] is [new product price]NB: JavaScript should be the programming language of use for this task