Create an Object with Calculated Property Values
Write a function that takes a number and returns an object with properties:
- original (the input number)
- double (twice the input number)
- isPositive (true if the number is positive, false otherwise)
- original (the input number)
- double (twice the input number)
- isPositive (true if the number is positive, false otherwise)
JavaScript
Console