Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "new Function" syntax #194

Merged
merged 13 commits into from
Jan 31, 2021

Conversation

pasor1
Copy link
Member

@pasor1 pasor1 commented Jan 27, 2021

No description provided.

@pasor1
Copy link
Member Author

pasor1 commented Jan 27, 2021

Non capisco cosa ho combinato, ma insieme all' articolo tradotto sono passate anche alcune correzioni ortografiche fatte su altri articoli 😥

@longo-andrea
Copy link
Contributor

okay, guardando i file che hai toccato direi che non ci sta lavorando nessuno... quindi se riusciamo a fare merge con le correzioni ancora meglio 😄

Co-authored-by: Andrea  <45577511+longo-andrea@users.noreply.github.com>

```js run
let sayHi = new Function('alert("Hello")');

sayHi(); // Hello
```

The major difference from other ways we've seen is that the function is created literally from a string, that is passed at run time.
La differenza dalle altre modalità di creazione funzioni che abbiamo visto, è che qui la funzione viene creata letteralmente da una stringa, che viene passata in fase di esecuzione.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Altra piccolezza: quando, qui sopra, diciamo 'lettaralmente' intendiamo una specie di termine tecnico per 'estrazione da una stringa' oppure il classico modo di dire 'letteralmente'? Perche', nel qual caso fosse la seconda, metterei:

Suggested change
La differenza dalle altre modalità di creazione funzioni che abbiamo visto, è che qui la funzione viene creata letteralmente da una stringa, che viene passata in fase di esecuzione.
La differenza dalle altre modalità di creazione funzioni che abbiamo visto, è che qui la funzione viene letteralmente creata da una stringa, che viene passata in fase di esecuzione.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Io l'ho inteso piu' come termine "tecnico" ... per quello ho tradotto così ;-)

Copy link
Contributor

@Dorin-David Dorin-David left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gran traduzione! Aggiusterei giusto due cosette...

@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

pasor1 and others added 4 commits January 31, 2021 13:55
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com>
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com>
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com>
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com>
pasor1 and others added 2 commits January 31, 2021 13:59
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com>
@pasor1 pasor1 merged commit aad22b5 into javascript-tutorial:master Jan 31, 2021
@javascript-translate-bot

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

@pasor1 pasor1 deleted the article/07-new-function branch January 31, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants