It returns true if sequence of char values are found in this string … I'm trying to check if a string I import into my application has a certain piece of text. When comparing a string with a number, JavaScript will convert the string to a number when doing the comparison. Man kann jedoch immer ein Leerzeichen zwischen else und if benutzen. The Java if...else statement is used to run a block of code under a certain condition and another block of code under another condition. eine JavaScript-Datei wird als Erweiterung .jsund es wird in HTML-Dateien unter Verwendung enthalten sein müssen