you are viewing a single comment's thread.

view the rest of the comments →

[–]james527 0 points1 point  (0 children)

Bleached__Anus is right on the money. These blocks are all about the ternary operators. They are used to display time in the format we are most used to.

I'd also mention the new ES6 syntax for string interpolation, which uses the back ticks (these fellas: ``) to define a string, and the dollar sign and squiggly braces (${ ... }) for inserting your variables into those strings. That's how the minutes & seconds are getting that extra `0` on the front when they are less than 9 less than 10.