Author: Marty Ballard
So oftentimes I'll find myself writing a function for React or Angular and I just want a really quick way to test this function without firing up the app. Here's a really quck and simple way to do just that.
After you have the file created, open a terminal right in VSCode from the top menu - Terminal > New Terminal. Then you simply run the file using node as such -
Here's a quck video below to show you how it looks. I hope this saves you a bit of time.