Alright so I have this problem... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Alright so I have this problem...

I am currently trying to make a thermometer, the code is up right now but every time I input a city and state, it just recreates the solo learn code playground. how do I fix this. https://code.sololearn.com/W7SmHO9jiO82/?ref=app

18th May 2018, 1:30 PM
Dayton Wyer
Dayton Wyer - avatar
3 Answers
+ 1
I think you may want to insert some code. First, wrap everything in this: document.ready = function() { //everything } Then I think you will also want to add this inside at the very top: var thermometer = document.getElementById("thermometer");
18th May 2018, 1:53 PM
Zeke Williams
Zeke Williams - avatar
0
An error I'm getting in the console when I run it, even before entering anything into the input, is that you have not defined the variable thermometer in your JavaScript. What is the variable thermometer supposed to be? There are also many other errors in the js that need to be fixed.
18th May 2018, 1:49 PM
Zeke Williams
Zeke Williams - avatar
0
Alright thanks
18th May 2018, 2:08 PM
Dayton Wyer
Dayton Wyer - avatar