Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

String contains in javascript

let text = "Hello world, welcome to the universe.";
let result = text.includes("world"); // return boolean value
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #String #javascript
ADD COMMENT
Topic
Name
1+9 =