![]() ![]() Pi.toFixed( 2) // returns 3.14 - for working with money Transitionend, onmessage, onmousewheel, ononline, onoffline, onpopstate, onshow, onstorage, ontoggle, onwheel, ontouchcancel, ontouchend, ontouchmove, ontouchstart Onabort, oncanplay, oncanplaythrough, ondurationchange, onended, onerror, onloadeddata, onloadedmetadata, onloadstart, onpause, onplay, onplaying, onprogress, onratechange, onseeked, onseeking, onstalled, onsuspend, ontimeupdate, onvolumechange, onwaitingĪnimationend, animationiteration, animationstart Ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop Onblur, onchange, onfocus, onfocusin, onfocusout, oninput, oninvalid, onreset, onsearch, onselect, onsubmit Onabort, onbeforeunload, onerror, onhashchange, onload, onpageshow, onpagehide, onresize, onscroll, onunload Mouse onclick, oncontextmenu, ondblclick, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseover, onmouseout, onmouseup Person // member !(a = b) // logical notĪ ! = b // not equal typeof a // type (number, object, function.)Ī + = b // a = a + b (works with - * %.) 100 / 48 remainder = 4Ī ++ b - // postfix increment and decrement Bitwise operators & X = 1 // Throws an error because variable is not declared Values false, true // boolean 18, 3.14, 0b10011, 0xF6, NaN // number "flower", 'John' // string undefined, null, Infinity // special Operators a = b + c - d // addition, substractionĪ = b * (c / d) // multiplication, division ![]() Let z = 'zzz' // block scope local variable Strict mode "use strict" // Use strict mode to write secure code ![]()
0 Comments
Leave a Reply. |