Why the program is throwing an error when i am trying to fetch data in .json format in Javascript [closed]

This is the error my code is throwing:

This is my code , here I am trying to fetch data from pokemon API but it dosent seem to be working

ITs supposed to fetch and check if the “ok” in in the Pokémon is false or true or false as if its false it means the data wasn’t fetched but it’s showing a totally different error, I tried using try and caught but it didn’t work either