Please explain what's happening . i also read one post but i didn't get it well

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: Positive and Negative Lookahead

Link to the challenge:

You didn’t ask a question.

Please let us know what’s going on and how we can help.

/(?=\w{6})(?=\w*\d{2})/ here before ‘?’ mark nothing mention then what is going to look ahead . not only that I didn’t understand this whole thing please help me out

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.