Create a function calculateLogarithmicTransformations
such that,
- It accepts an array of positive numbers as its parameter.
- It first calculate the natural logarithm of each number in the input array and store these values in a new array.
- It then calculates the natural logarithm of each value in this new array created in the previous step and store these values in another array.
- Display an object containing both arrays to the console. The object should have the following structure,
- originalLogArray: An array of natural logarithms of the original input array.
- doubleLogArray: An array of natural logarithms of the values in firstLogArray.
- If the input array contains zero or negative numbers, the function should display the message Input array must contain only positive numbers.
For example,