Positive and Negative Lookaheads

Tell us what’s happening:

Can anyone please explain me in deep, about the password concept

Your code so far


let sampleWord = "astronaut";
let pwRegex = //; // Change this line
let result = pwRegex.test(sampleWord);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Positive and Negative Lookahead

Link to the challenge:

The challenge is asking you to check if the string have the required format, the strings have to be greater than 5 characters long, do not begin with numbers, and have two consecutive digits.

passwords are mentioned to show a possible usage (have you ever tried to create a new password, and the page keeps telling you that it is too short, you need to add certaint characters and such? that can be done with regex)
if you want to learn about passwords, you can google about them, but you do not need a deep understanding of passwords for this challenge