I'm still learning the javascript language and I ran into this bit of code. I was wondering if anyone would possibly "translate" it into an if/else statement to make it easier for me to understand what's happening? Thanks!
var offsetX = (w < 0) ? w : 0;
var offsetY = (h < 0) ? h : 0;
Aucun commentaire:
Enregistrer un commentaire