Forum Discussion

nish_b's avatar
nish_b
Contributor
6 years ago

Variable declaration in a javascript class

Hi,   Can we declare global variables within a javascipt class, outside a function? When I try to declare a variable, it gives error: Syntax Error: Unexpected identifier Sample code: class Te...