# JavaScript, 17 bytes

    a=!![],a++,a+=![]

(not sure if the console.log was required or not...)

<https://jsconsole.com/>