Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mod function in JS?

 
auvrm papu
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a mod function in JS?

like 10 % 2
or 10 mod 2
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try it?
 
auvrm papu
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Bear..

I did try..before..and got an error..so I just wanted to verify...
(just figured out that I had some other issues ...in the paranthesis..! )
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably could have saved yourself some time by posting your code and the error that you were getting. You should also think about getting yourself a good JavaScript reference to answer these types of questions for you quickly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic