There's a specific line of code I'm working with that reads --
let longitude = JSON.stringify(place.lon);
After calling alert(longitude), I receive the output "44.54321". However, my intention is to retrieve just the number itself, so I attempted the following adjustment:
let longitude = parseFloat(JSON.stringify(place.lon));
Unfortunately, this modification resulted in NaN being returned. Can someone shed some light on what could be causing this issue?
Appreciate your insights!