The Remainder Operator (%) in JavaScript allows you to find the remainder of a division of two numbers - much similar to the modulo operator in many other languages. It can be used for the same purpose of finding the remainder as it uses the built in modulo function.
It is also extremely useful for limiting a large number (or converting it) into a smaller one with a maximum you specify. For example if you wanted to reduce 500 down to a maximum of 7, you can do this easily using the remainder operator.
In this video I take you through a basic example of the operator as well as it's uses to limit a number down.
For your reference, check this out:
https://developer.mozilla.org/en-US/d...)
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
In questa pagina del sito puoi guardare il video online The Remainder Operator in JavaScript | Modulo % della durata di ore minuti seconda in buona qualità , che l'utente ha caricato dcode 23 aprile 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 37,388 volte e gli è piaciuto 564 spettatori. Buona visione!