+ 1
Your code does return an error. Get IP not defined.
22nd Jun 2022, 9:37 PM
Chris Coder
Chris Coder - avatar
22nd Jun 2022, 9:41 PM
Chris Coder
Chris Coder - avatar
0
Maybe this can help about why the script belongs at the bottom. https://levelup.gitconnected.com/all-about-script-87fea475b976
23rd Jun 2022, 2:54 AM
Chris Coder
Chris Coder - avatar
0
Yes i did see something about placements. "When you place your JavaScript at the bottom of your HTML body, it gives the HTML time to load before any of the JavaScript loads, which can prevent errors, and speed up website response time." It is not clear but I suppose that means your api loaded before your script. So it was out of scope. Also now that you have your tags in the correct order, you can use console.log
23rd Jun 2022, 1:51 PM
Chris Coder
Chris Coder - avatar
0
Yes console shows up right after I run the code. But if I swipe down to hide it I can not make it come back up.
24th Jun 2022, 3:39 PM
Chris Coder
Chris Coder - avatar
0
Keep trying to swipe up from the bottom it finally worked for me
24th Jun 2022, 3:40 PM
Chris Coder
Chris Coder - avatar