📢Stop adding API_KEY to tutorials. Do this...
Ayobami Ogundiran

Ayobami Ogundiran @codingnninja

About: I am a software developer that loves to research, learn and unlearn to solve human and business problems. I write PHP(Laravel), JavaScript(React), I contributed to Firefox Debugger and tutor @udemy.

Location:
Nigeria
Joined:
Jun 10, 2018

📢Stop adding API_KEY to tutorials. Do this...

Publish Date: Feb 21 '23
5 3

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:");
Enter fullscreen mode Exit fullscreen mode

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 👋.

You can further explain the normal way to do it and why you do it that way not to confuse learners.

Thank me later 🤩.

Comments 3 total

Add comment