In the above program, two strings are compared. Here,
The toUpperCase() method converts all the string characters to uppercase.
=== is used to check if both the strings are the same.
The if...else statement is used to display the result as per the condition.
Note: You can also use the toLowerCase() method to convert all the strings to lowercase and perform the comparison.
Thankyou ❣️ Subscribers
@Becoming_developer
Auf dieser Seite können Sie das Online-Video Class 31 || Compare Two String || Javascript Example mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Becoming Developer Marko G 29 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 250 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!