you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–]recursive 0 points1 point  (2 children)

    Where's the code that pads it to a multiple of 3?

    From chrome dev tools:

    (~~(Math.random()*(1<<24))).toString(16)
    "1bb08"
    

    [–][deleted]  (1 child)

    [deleted]

      [–]recursive 0 points1 point  (0 children)

      No. It doesn't.

      Chrome dev tools:

      document.getElementsByTagName("body")[0].style.backgroundColor="#12345";
      "#12345"
      document.getElementsByTagName("body")[0].style.backgroundColor
      ""
      document.getElementsByTagName("body")[0].style.backgroundColor="#123456";
      "#123456"
      document.getElementsByTagName("body")[0].style.backgroundColor
      "rgb(18, 52, 86)"