Output of the below Regular Expression function in JavaScript Var patt1 = new RegExp(“Best”); document.write(patt1.test(“The Best things in life are free”));
Best.
True.
The Best things in life are free.
Best things in life are free.