Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string contains javascript

const s1 = 'javascript';
const s2 = 'python';

console.log(s1.includes('script')); // true
console.log(s2.includes('script')); // false
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #string #javascript
ADD COMMENT
Topic
Name
5+2 =