javascript - Private static variable? -


this question has answer here:

is possible create "private static" variables in javascript similar java?

my scenario need retrieve data point server , save in static variable, function uses need not make server call every time called.

i need data once fetched , copied variable not read outside class need secure, want have private. have read achieve private variable use scope functionality in javascript need static.

can achieved?


Comments