Answers for "test() javascript"

0

test() javascript

const str = "Hello World";
var item = /Hello/,  // to define the item name use /item name/
 result = item.test(str); //test() used to search for a specific item in strings
// returns "true"
Posted by: Guest on May-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language