--- title: Date.prototype.toSource() slug: Web/JavaScript/Reference/Global_Objects/Date/toSource tags: - Date - JavaScript - Method - Prototype translation_of: Web/JavaScript/Reference/Global_Objects/Date/toSource original_slug: Web/JavaScript/Referencje/Obiekty/Date/toSource ---
{{JSRef}} {{non-standard_header}}

Podsumowanie

Zwraca łańcuch znaków reprezentujący kod źródłowy obiektu.

Składnia

dateObj.toSource()
Date.toSource()

Parametry

Brak.

Opis

Metoda toSource() zwraca następującą wartość:

function Date() {
   [native code]
}

Ta metoda jest często nazywana wewnętrzną metodą JavaScript i jest nie wyraźna w kodzie.

Zobacz także