Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 286 Bytes

Libraries / Date

問題

var d = new Date("Sun, 24 Dec 2017 09:00:00 +0900");
console.log(d.getYear() + "-" + d.getMonth() + "-" + d.getDay());

何が表示される?

  1. "2017-12-24"
  2. "2017-11-24"
  3. "117-11-24"
  4. "117-11-0"

正解はこちら