From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../global_objects/function/tosource/index.html | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 files/pt-br/web/javascript/reference/global_objects/function/tosource/index.html (limited to 'files/pt-br/web/javascript/reference/global_objects/function/tosource') diff --git a/files/pt-br/web/javascript/reference/global_objects/function/tosource/index.html b/files/pt-br/web/javascript/reference/global_objects/function/tosource/index.html new file mode 100644 index 0000000000..4fbeaaf1c1 --- /dev/null +++ b/files/pt-br/web/javascript/reference/global_objects/function/tosource/index.html @@ -0,0 +1,57 @@ +--- +title: Function.prototype.toSource() +slug: Web/JavaScript/Reference/Global_Objects/Function/toSource +tags: + - Função + - JavaScript + - metodo +translation_of: Web/JavaScript/Reference/Global_Objects/Function/toSource +--- +
{{JSRef}} {{non-standard_header}}
+ +

O método toSource() retorna uma string que representa o código-fonte do objeto.

+ +

Sintaxe

+ +
function.toSource();
+Function.toSource();
+
+ +

Valor de Retorno

+ +

Uma string representa o código-fonte de um objeto.

+ +

Descrição

+ +

O métodotoSource retorna os seguintes valores:

+ + + +

Esse método, normalmente é chamado internamente pelo JavaScript e não explicitamente no código. Você pode chamar toSource enquanto depura para examinar o conteúdo de um objeto.

+ +

Especificações

+ +

Não faz parte de nenhum padrão. Implementado no JavaScript 1.3.

+ +

Compatibilidade em Navegadores

+ +
+ + +

{{Compat("javascript.builtins.Function.toSource")}}

+
+ +

Veja Também

+ + -- cgit v1.2.3-54-g00ecf