Subscribe

Vanilla JavaScript Quick Testing

✍️

Three ways of testing JavaScript

19 Jul, 2020 · 2 min read

I realized today I’m always preaching about getting your hand dirty and testing whatever I write about yourself.

It’s proven that if you experience the code and play with it, you are more likely to catch it and keep it in your mind.

So let’s dive into quick solutions to test JavaScript!

Codepen Testing JavaScript

A very obvious solution is Codepen. As you can see in my articles, I put in a lot of Codepen links because they make it easy for you to fork and it’s just very versatile.

Note: I don’t get paid 🥺, I like it!

Within Codepen, you can also use compilers, load certain external scripts, etc.!

Have a look at an example on Codepen.

See the Pen My Neighbor Totoro by Chris Bongers (@rebelchris) on CodePen.

RunJS Local testing

For some small scripts or just a verification, I use a program called RunJS. It works as a small notepad like application but is very quick just to test some JavaScript in.

Local JavaScript Testing

Another thing I tend to do is just make a local folder. Sometimes it’s just that much easier to test things locally. Obviously, we can use Chrome or Firefox and open the debug tools to have console.logs or use the debug points.

Let me know what you use!

I love to know what you use to run JavaScript and make proof of concepts or test small scripts.

Thank you for reading, and let’s connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter

Spread the knowledge with fellow developers on Twitter
Tweet this tip
Powered by Webmentions - Learn more

Read next 📖

Removing all vowels with JavaScript

3 Dec, 2022 · 2 min read

Removing all vowels with JavaScript

10 games to learn JavaScript

2 Dec, 2022 · 3 min read

10 games to learn JavaScript

Join 2099 devs and subscribe to my newsletter