◐ Shell
clean mode source ↗

Interaction: alert, prompt, confirm by andreimuntean1 · Pull Request #173 · javascript-tutorial/ro.javascript.info

bogdanbacosca

Choose a reason for hiding this comment

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

Textul trebuie re-formatat.

.cache
.project
.settings
.vscode

Choose a reason for hiding this comment

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

Nu trebuie să adăugăm setări care nu erau acolo

</script>

</body>
let name = prompt("Cum te numești?", "");

Choose a reason for hiding this comment

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

Presupun că ai o setare în VSCode care formatează textul.
Traducerea trebuie să aibă același format cu cel original. Dezactivează extensiile precum Prettier.

alert(`You are ${age} years old!`); // You are 100 years old!
```
alert(`Ai ${age} de ani!`); // Ai 100 de ani!
````

Choose a reason for hiding this comment

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

atenție la formatare


```js run
let test = prompt("Test", ''); // <-- for IE
let test = prompt("Test", ""); // <-- pentru Internet Explorer

Choose a reason for hiding this comment

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

let test = prompt("Test", ""); // <-- pentru Internet Explorer
let test = prompt("Test", ''); // <-- pentru Internet Explorer

formatare