Przejdź do treści

call - Kurs HTML i CSS

  • JS
    Operacje na datach - Date.prototype / Pobieranie dnia tygodnia w UTC - getUTCDay

    ...new Date("1410-07-15T13:30+02:00").getUTCDay(); // 0 (niedziela) new Date(NaN).getUTCDay(); // NaN Date.prototype.getUTCDay.call(null); // TypeError Date.prototype.getUTCDay.call(undefined); // TypeError Date.prototype.getUTCDay.call(0); // TypeError Date.prototype.getUTCDay.call(""); // TypeError Date.prototype.getUTCDay.call("2000"); // TypeError Date.prototype.getUTCDay.call({}); // TypeError

  • JS
    Operacje na datach - Date.prototype / Pobieranie godziny - getHours

    ...new Date("1410-07-15T13:30+02:00").getHours(); // 13 new Date(NaN).getHours(); // NaN Date.prototype.getHours.call(null); // TypeError Date.prototype.getHours.call(undefined); // TypeError Date.prototype.getHours.call(0); // TypeError Date.prototype.getHours.call(""); // TypeError Date.prototype.getHours.call("2000"); // TypeError Date.prototype.getHours.call({}); // TypeError

  • JS
    Operacje na datach - Date.prototype / Pobieranie godziny w UTC - getUTCHours

    ...new Date("1410-07-15T13:30+02:00").getUTCHours(); // 11 new Date(NaN).getUTCHours(); // NaN Date.prototype.getUTCHours.call(null); // TypeError Date.prototype.getUTCHours.call(undefined); // TypeError Date.prototype.getUTCHours.call(0); // TypeError Date.prototype.getUTCHours.call(""); // TypeError Date.prototype.getUTCHours.call("2000"); // TypeError Date.prototype.getUTCHours.call({}); // TypeError

  • JS
    Operacje na datach - Date.prototype / Pobieranie minut - getMinutes

    ...new Date("1410-07-15T13:30+02:00").getMinutes(); // 30 new Date(NaN).getMinutes(); // NaN Date.prototype.getMinutes.call(null); // TypeError Date.prototype.getMinutes.call(undefined); // TypeError Date.prototype.getMinutes.call(0); // TypeError Date.prototype.getMinutes.call(""); // TypeError Date.prototype.getMinutes.call("2000"); // TypeError Date.prototype.getMinutes.call({}); // TypeError

  • JS
    Operacje na datach - Date.prototype / Pobieranie minut w UTC - getUTCMinutes

    ...new Date("1410-07-15T13:30+02:00").getUTCMinutes(); // 30 new Date(NaN).getUTCMinutes(); // NaN Date.prototype.getUTCMinutes.call(null); // TypeError Date.prototype.getUTCMinutes.call(undefined); // TypeError Date.prototype.getUTCMinutes.call(0); // TypeError Date.prototype.getUTCMinutes.call(""); // TypeError Date.prototype.getUTCMinutes.call("2000"); // TypeError Date.prototype.getUTCMinutes.call({})...

  • JS
    Operacje na datach - Date.prototype / Pobieranie sekund - getSeconds

    ...new Date("1410-07-15T13:30:59+02:00").getSeconds(); // 59 new Date(NaN).getSeconds(); // NaN Date.prototype.getSeconds.call(null); // TypeError Date.prototype.getSeconds.call(undefined); // TypeError Date.prototype.getSeconds.call(0); // TypeError Date.prototype.getSeconds.call(""); // TypeError Date.prototype.getSeconds.call("2000"); // TypeError Date.prototype.getSeconds.call({})...

  • JS
    Operacje na datach - Date.prototype / Pobieranie sekund w UTC - getUTCSeconds

    ...59 new Date(NaN).getUTCSeconds(); // NaN Date.prototype.getUTCSeconds.call(null); // TypeError Date.prototype.getUTCSeconds.call(undefined); // TypeError Date.prototype.getUTCSeconds.call(0); // TypeError Date.prototype.getUTCSeconds.call(""); // TypeError Date.prototype.getUTCSeconds.call("2000"); // TypeError Date.prototype.getUTCSeconds.call({})...

  • JS
    Operacje na datach - Date.prototype / Pobieranie milisekund w UTC - getUTCMilliseconds

    ...500 new Date(NaN).getUTCMilliseconds(); // NaN Date.prototype.getUTCMilliseconds.call(null); // TypeError Date.prototype.getUTCMilliseconds.call(undefined); // TypeError Date.prototype.getUTCMilliseconds.call(0); // TypeError Date.prototype.getUTCMilliseconds.call(""); // TypeError Date.prototype.getUTCMilliseconds.call("2000")...

  • JS
    Operacje na datach - Date.prototype / Pobieranie przesunięcia strefy czasowej - getTimezoneOffset

    ...120 new Date(NaN).getTimezoneOffset(); // NaN Date.prototype.getTimezoneOffset.call(null); // TypeError Date.prototype.getTimezoneOffset.call(undefined); // TypeError Date.prototype.getTimezoneOffset.call(0); // TypeError Date.prototype.getTimezoneOffset.call(""); // TypeError Date.prototype.getTimezoneOffset.call("2000"); // TypeError...

  • JS
    Operacje na datach - Date.prototype / Pobieranie milisekund - getMilliseconds

    ...500 new Date(NaN).getMilliseconds(); // NaN Date.prototype.getMilliseconds.call(null); // TypeError Date.prototype.getMilliseconds.call(undefined); // TypeError Date.prototype.getMilliseconds.call(0); // TypeError Date.prototype.getMilliseconds.call(""); // TypeError Date.prototype.getMilliseconds.call("2000"); // TypeError...

« 1 2 3 4 5 6 »

★★★★★ 5/5 (289)

Facebook