Javascript

How To Test a Node.js Module with Mocha and Assert — step-by-step Javascript tutorial on Progressive Robot

How To Test a Node.js Module with Mocha and Assert

Testing is an integral part of software development. With the right test setup, this process can be automated, saving a lot of time. In this article, you’ll write tests for a Node.js TODO list module. You will set up and use the Mocha test framework to structure a series of integration tests. Then you’ll use the Node.js assert module to create the tests themselves. Finally, you will try out testing with asynchronous code, and use hooks to prepare your test fixtures and environments.

Read more
How To Use Functions in TypeScript — step-by-step Javascript tutorial on Progressive Robot

How To Use Functions in TypeScript

TypeScript fully supports the existing JavaScript syntax for functions, while also adding type information and function overloading as new features. Besides providing extra documentation to the function, type information will also decrease the chances of having bugs. In this tutorial, you will start by creating the most basic functions with type information, then move on to more complex scenarios, like using rest parameters and function overloading.

Read more
How To Use Server-Side Rendering with Nuxt.js — step-by-step Javascript tutorial on Progressive Robot

How To Use Server-Side Rendering with Nuxt.js

Nuxt.js is a framework for Vue.js applications that can solve this problem with server-side rendering, a strategy that renders the application on the server then sends it to the client. In this tutorial, you will use Nuxt.js to generate page routes, create layout components, and set page-specific metadata for an example application.

Read more
CHAT