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
En esta página del sitio puede ver el video en línea Class 31 || Compare Two String || Javascript Example de Duración hora minuto segunda en buena calidad , que subió el usuario Becoming Developer Marko G 29 diciembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 250 veces y le gustó 5 a los espectadores. Disfruta viendo!