console.log(is_string('w3resource'));

console.log(is_string([1, 2, 4, 0]));

function is_string(str)
{
    var temp = Array.isArray(str);
    
    return temp
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: