isString

Modified on Mon, 21 Aug 2023

Description

Use this function to check if a value is classified as a String.

Syntax

isString(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is classified as a String or object, and false otherwise.

Sample

ExampleResultDescription
isString('Hello')trueReturns true if the given value, 'Hello', is a String.
isString(42)falseReturns false if the given value, 42, is not a String.

To view all the Language functions, click here.