aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/url/tojson/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/url/tojson/index.html')
-rw-r--r--files/fr/web/api/url/tojson/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/fr/web/api/url/tojson/index.html b/files/fr/web/api/url/tojson/index.html
index 8c34a37e42..3b594c32cd 100644
--- a/files/fr/web/api/url/tojson/index.html
+++ b/files/fr/web/api/url/tojson/index.html
@@ -29,8 +29,8 @@ translation_of: Web/API/URL/toJSON
<h2 id="Exemples">Exemples</h2>
-<pre><span class="message-body-wrapper"><span class="message-flex-body"><span class="devtools-monospace message-body"><span class="cm-keyword">const</span> <span class="cm-def">url</span> <span class="cm-operator">=</span> <span class="cm-keyword">new</span> <span class="cm-variable">URL</span>(<span class="cm-string">"https://developer.mozilla.org/en-US/docs/Web/API/URL/toString"</span>);
-<span class="cm-variable">url</span>.<span class="cm-property">toJSON</span>()</span></span></span>
+<pre>const url = new URL("https://developer.mozilla.org/en-US/docs/Web/API/URL/toString");
+url.toJSON()
</pre>
<h2 id="Spécifications">Spécifications</h2>