Created
August 30, 2020 16:08
-
-
Save ashwinkumar2438/18d3cf66e1b1acc9db4c1cfc07b82854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let re1=new RegExp("abc"); //output: /abc/ | |
let re2=/abc/; //output: /abc/ | |
re1.test("abcdefg") //true; | |
re2.test("abcdefg") //true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment