Skip to content Skip to sidebar Skip to footer

Getdistance Javascript Not Returning Nothing Whilst Having Some Values For As Parameters

I am trying to get a result from this function. However, nothing is being returned onto my page, just 'This example calls a function which performs a calculation, and returns the r

Solution 1:

Where are you using the x variable?

I would expect something like this:

<p>This example calls a functionwhich performs a calculation, and returns the result:
<div id="result">
</div>
</p>

var x = getDistance(52.482799000000000, -2.000643000000000, 52.48463500000000, -1.980759000000000);
$('#result').text(x);

Post a Comment for "Getdistance Javascript Not Returning Nothing Whilst Having Some Values For As Parameters"