Answers for "check if string has javascript"

1

javascript has string

const string = "Hello"
const substring = "llo"
console.log(string.includes(substring))
Posted by: Guest on March-17-2021
4

js test if string

if (typeof string === 'string') { /* code */ };
Posted by: Guest on April-18-2020

Code answers related to "check if string has javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language