Skip to content

Product Array Algorithm #1013

@Dufuna-Fem

Description

@Dufuna-Fem

Using product detail information from this datasheet,

  1. Create a products array from the products in the datasheet.
  2. Create a product_price array from the product prices in the datasheet.
  3. Check the length of the product names in your products array.
  4. If the length of the product name is even, double the price of the product.
  5. If the length is odd, the product price should be halved.
  6. Print out the product prices for all the products using this format The price of [product name] is [new product price]
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions