Thursday, July 1, 2021

TypeScript Data Type - Void | Example | Demo

TypeScript Data Type - Void

Similar to languages like Java, void is used where there is no data. For example, if a function does not return any value then you can specify void as return type.

Example





Demo:


Demo

No comments:

Post a Comment

How to build an Express and Node.js app with Typescript

  In this tutorial, you will learn how to set up a Node.js and Express project with Typescript and live auto-reloading. Note that this metho...