/    Sign up×
Community /Pin to ProfileBookmark

When and where to use Singleton Classes

I’m still learning JavaScript but making steady progress.

Through my searching around on the web learning how to use things I came into the belief that a singleton class could be used in client side programming to pass application state between web pages and ultimately the JavaScripts associated with those pages. Now I’m not so sure.

If it is possible to use singleton classes in client side programming, what is the proper way to do this?

I have considered the possibility that singleton classes are a Node.js feature only.

Thanks in advance
W.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@daveyerwinJan 01.2022 — generally,

application state is preserved in server-side code

and passed to the requested page

data can also be passed with the query string,

cookies,

and local storage
Copy linkTweet thisAlerts:
@tutuboxapkJan 03.2022 — Nowadays, TutuBox is a famous utility. It is one of the exceptional 1/three-birthday party app shops which might be loose to use. If you want an app or undertaking that is not available within the reliable save. You want to go along with a third-birthday celebration app save. In this situation,https://tutuboxapp.org/ TutuBox might be the selection for you. Because of the useful features that make it first-rate from different apps. But if you want to download TutuBox Apk for Android, then make sure it's far to be had for iOS gadgets. But its developers are operating on it and you may definitely get TutuBox Apk to your Android tool quickly.
×

Success!

Help @Programming_Padawan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.11,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...