Jump to content

Divide twice on the same line without creating a regex?


Day

Recommended Posts

I'm trying to create an equation and would prefer not to split it into different variables. Is there a way to divide twice on the same line and avoid created a regular expression?

 

example:

var eq = (5/5)/(5+5);

Thanks,

Link to comment
Share on other sites

Oh I didn't test it (I should have) I just assumed I was doing something wrong when it got color coded as a regular expression.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...