Ogundiran Ayobami
youTooCanCode

Follow

youTooCanCode

Follow

πŸ“’Stop adding API_KEY to tutorials. Do this...

Ogundiran Ayobami's photo
Ogundiran Ayobami
Β·Feb 21, 2023Β·

1 min read

There are so many tutorials out there that add API_KEY to code.

And some other people now use their keys. Don't do that again.

πŸ“’ Do this instead πŸ‘‡

const API_NAME = "myAPI";
const API_KEY = prompt ("Enter your API_KEY:");

This gives you the chance to test your code and learners can create their API_KEY to test it.

Note: This is only for the browser πŸ‘‹.

Thank me later 🀩.

Β 
Share this