Plz explain it?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 4

Plz explain it??

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

26th Feb 2019, 5:40 AM
Ariful
Ariful - avatar
4 Respostas
+ 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