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
In questa pagina del sito puoi guardare il video online Class 31 || Compare Two String || Javascript Example della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Becoming Developer Marko G 29 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 250 volte e gli è piaciuto 5 spettatori. Buona visione!