Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Recently, I was working on a number to word converter. I built a simple web API, and wired up a less-than-flattering piece of UI for it (for demonstration purposes). It works by way of you putting in a number, and then hitting a button to get your conversion. You can check it out here, although it might take a minimum of 30 seconds before it opens. It doesn't have a quick load time because I used render. Sadly, Heroku doesn't have a free tier anymore. For the project, I used a test suite called "Jest", so my references will come from Jest, but it works pretty much the same way as other testing suites. This is my first time following the principle of writing test code before actual code. Please note that anywhere in this article you see "UI", I am referring to "User Interface." Also note that the word "code" represents a broad spectrum, but with reference to "unit testing", it gets narrowed down to "functions".