Our software which we use in the office, I leave a code like this:
consterr={count:0}constbtn=document.querySelector(".js-btn-remove")btn.addEventListener("click",()=>{if(err.count==5){// omg, you can't be serious. you're still trying...myFancyMessage({title:'Leave me alone...',text:['unhappy',`Don't do this again. You almost kill me. This hurts me.`,]})returnfalse;}myFancyMessage('Warning','You are not authorized to remove sales.')// some important codeserr.count++})
Ruby on Rails developer - Maker of ✨ things on the Internet. O(🐌^n) kind of guy. Alumni @lewagonparis (batch 145). Builds wooden furniture on his balcony.
Our software which we use in the office, I leave a code like this:
err.count == 5? how did you come up with this number?
5 is my favorite number. :P
No, it just an example. I just exemplified the scenario.
This is precious! 😄