Find your content:

Search form

You are here

How to declare private variable in node.js? - Help Interview Questions

 
Share

At this point of time, there is no direct way however babel includes the following option to create private variable.

 

class MyClass {

     #a = 0; //private

     b   = 0; //public

}

My Block Status

My Block Content