|
You are here |
endtimes.dev | ||
| | | | |
nickhayden.com
|
|
| | | | | WTF is strict mode? You might have seen your colleagues dropping in 'use strict' into their JavaScript code and wondered: WTF does that do? Another place you'll often see use stri... | |
| | | | |
www.hillelwayne.com
|
|
| | | | | What does this print? x = 1 x --> 0 Think it through, then try it in a browser console! Answer and explanation in the dropdown. Show answer It prints 1. wait wtf At the beginning of a line (and only at the beginning of a line), --> starts a comment. The JavaScript is parsed as x=1; x; // 0 The browser then displays the value of the last expression, which of course is 1. | |
| | | | |
lea.verou.me
|
|
| | | | | ||
| | | | |
blog.stroep.nl
|
|
| | | I made a tool to write/test easing equation functions. It uses JavaScript syntax to evaluate the expression, which you can just type in. I found it helpful to test curves. I rolled out this one because I didn't found a similar tool, most were Math or CSS related. | ||