This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Javascript classes
#1
Hallo an alle !
Es ist  nun schon eine Weile her das ich mit javascript programmiert habe .
Wie sieht es nun aus mit javascript und class ist das immer noch semantic sugar?
oder gibt es nun schon eine  echte Objektorientierte Herangehensweise  beim erstellen von js scripts?
Bitte keine Infos zu closures.
Zitieren
#2
So richtig beantworten kann ich dir das auch nicht.
Vieleicht hilft dir das etwas
https://webreflection.medium.com/js-clas...690fedf078
Als Lösung markieren Zitieren
#3
An Andixander:
Reiner syntaktischer Zucker ist JS-OOP nicht mehr.
Dennoch wirst du es selten in einfachen Websites mit wenig Funktionalität werden, die nur VanillaJS nutzen.
In Frameworks wie Angular programmierst du ausschließlich mit Klassen, wenn auch mit TypeScript.
Ansonsten findest du Klassen in MV-Frameworks wie Backbone.js.
Smile
Als Lösung markieren Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste