Hot Fix

While demonstrating this assessment, an issue came apparent.

This issue was causing the temperature of 'Tom Land' to seem very... cold. Once the temperature reached double digits, the reading would be cut off, as only the first digit was taken. Below is an example of the issue using the console, logging the temperatures.


As you can see, the temperature was going from rising from one degree rapidly, then plummeting back down. 

The issue was caused by the substr() method, I was using substr(0,1) which would take the first digit only. 

Instead, this could be more accurately shown by using the .split() method - using the demical point (".") as a splitting point, as shown below:


Which will show the full readings of temperatures:



Comments

Popular posts from this blog

Creating a Reddit post

Reddit Authentication & Access tokens

Deleting a Reddit Post