Error message i dont know what it means or needs

Tell us what’s happening:
SyntaxError: invalid regular expression flag s

Your code so far

// Setup
var a;
a = 7;
var b;

// Only change code belowb = a;

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0.

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

What solution were you submitting?

Hi @sbosh2272

In this challenge, you have to assign variable b to variable a, like this

// Setup
var a;
a = 7;
var b;
// Only change code below
b= a;

what is the purpose of using a regular expression here?

this is related to your browser, an incompatibility issue - update your browser to latest version or use a different fully updated browser

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

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