Create a function that takes a number (key) as an argument and returns an array containing 4 strings:
You can look at the Wikipedia page to find out what the index is for the piano keys, where the octave numbers are and most importantly, how to calculate the frequency of the note, round the frequency to the nearest hundreth. Ignore the shaded parts of the piano (on the Wikipedia page).
pianoKeys(1) ➞ ["A", "0", "White", "27.50"]
pianoKeys(60) ➞ ["G♯/A♭", "5", "Black", "830.61"]
pianoKeys(0) ➞ false
A notes, they are rounded by nature (e.g. 440 Hz).false.