+ 4

Plz explain it??

var myVariable = 10 % 6; document.write(myVariable);

26th Feb 2019, 5:40 AM
Ariful
Ariful - avatar
5 Respuestas
+ 14
The % operator, which is called 'modulo' in C++, is called 'remainder' in Java. It performs the same operation: calculating the remainder of a division.  ➝ Remember to use  🔍Search...  bar to avoid from posting duplicate threads!  • Google Advanced Search : Set domain to 》sololearn.com《 for  search only on the SoloLearn https://www.google.com/advanced_search   • Eclipse Wiki : "Before asking a question on the forums" https://wiki.eclipse.org/Before_asking_a_question_on_the_forums   • SoloLearn Advanced Search : http://www.freecodeexamples.com/2018/12/sololearn-advanced-search.html https://code.sololearn.com/W26q4WtwSP8W/?ref=app https://code.sololearn.com/WvG0MJq2dQ6y/
26th Feb 2019, 6:40 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 8
It's called modules. ভাগশেষ বের করা যায়।
30th Mar 2019, 8:36 PM
Ahad
Ahad - avatar
+ 4
Thank all For answer
26th Feb 2019, 7:49 AM
Ariful
Ariful - avatar
+ 2
10 gets divided by 6 and the rest is assigned to myVariable then the write function of the document gets called which outputs myVariable to screen.
26th Feb 2019, 6:00 AM
Michael55555
Michael55555 - avatar