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

Popular posts from this blog

elasticsearch python client - work with many nodes - how to work with sniffer -

angular - Is it possible to get native element for formControl? -

Upload file with tags through OwnCloud or NextCloud API -