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} Log in or register to post comments