Shali’s Tech Blog Home.

SIXTH POST: Flow.js

Today I’m going to talk about flow.js. It is supported with Babel, which is a js transpiler. Flow is a static type checker for javascript.

Javascript is a dynamic language. We don’t have to define variable types like int,String, Float. Javascript can recognize the type according to the value. Also we can change the type of a variable, which will not possible with static languages. Since javascript have some issues like Object Oriented Programming, we can use Typescript, which we can call as superset of javascript. It has js features and many other features like classes, inheritance and other features. We can use Typescript for type checking in js. Flow is an alternative for Typescript for do this job for us.

We can install Flow with NPM & compile with Bable. Then we can use flow for check for type errors. Flow check type errors in compile time and tell us that there is an error.

  • Some Commands.

  • Some Examples.

  • Link.

https://flow.org/en/

-Prabath Shalitha (2020 Mar 15)

Design a site like this with WordPress.com
Get started