diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/it/web/javascript/reference/errors/unexpected_token/index.html | |
parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip |
remove retired locales (#699)
Diffstat (limited to 'files/it/web/javascript/reference/errors/unexpected_token/index.html')
-rw-r--r-- | files/it/web/javascript/reference/errors/unexpected_token/index.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/files/it/web/javascript/reference/errors/unexpected_token/index.html b/files/it/web/javascript/reference/errors/unexpected_token/index.html deleted file mode 100644 index 17a9c78a4c..0000000000 --- a/files/it/web/javascript/reference/errors/unexpected_token/index.html +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'SyntaxError: Unexpected token' -slug: Web/JavaScript/Reference/Errors/Unexpected_token -tags: - - Errori - - JavaScript - - Sintassi -translation_of: Web/JavaScript/Reference/Errors/Unexpected_token ---- -<div>{{jsSidebar("Errors")}}</div> - -<h2 id="Messaggio">Messaggio</h2> - -<pre class="syntaxbox">SyntaxError: espressione prevista, si ottiene "x" -SyntaxError: nome proprietà previsto, si ottiene "x" -SyntaxError: target previsto, si ottiene "x" -SyntaxError: nome dell'argomento rest previsto, si ottiene "x" -SyntaxError: parentesi di chiusura prevista, si ottiene "x" -SyntaxError: previsto '=>' dopo la lista degli argomenti, si ottiene "x" -</pre> - -<h2 id="Tipo_di_errore">Tipo di errore</h2> - -<p>{{jsxref("SyntaxError")}}</p> - -<h2 id="Cosa_è_andato_storto">Cosa è andato storto?</h2> - -<p>Era atteso un costrutto specifico del linguaggio, ma è stato fornito qualcosa di diverso. Potrebbe trattarsi di un semplice errore di digitazione.</p> - -<h2 id="Esempi">Esempi</h2> - -<h3 id="Espressione_prevista">Espressione prevista</h3> - -<p>Ad esempio, non è permesso terminare una lista di argomenti con la virgola, in quanto JavaScript si aspetta un altro argomento.</p> - -<pre class="brush: js example-bad">Math.max(2, 42,); -// SyntaxError: expected expression, got ')' -</pre> - -<p>Sarebbe invece corretto omettere la virgola o specificare un altro argomento (che potrebbe anche essere un espressione):</p> - -<pre class="brush: js example-good">Math.max(2, 42); -Math.max(2, 42, 13 + 37); -</pre> - -<h2 id="Vedi_anche">Vedi anche</h2> - -<ul> - <li>{{jsxref("Math.max()")}}</li> -</ul> |