How to create a regex in JavaScript

Regex
By Jad Joubran · 
Last updated Nov 11, 2017
let pattern = /hello world/;
RegExp on MDN