@@ -81,13 +82,13 @@ function disable(el) {
}
function submitForm(answer) {
- // Pretend it's hitting the network.
+ // Anggap saja sedang menghubungi jaringan.
return new Promise((resolve, reject) => {
setTimeout(() => {
if (answer.toLowerCase() === 'istanbul') {
resolve();
} else {
- reject(new Error('Good guess but a wrong answer. Try again!'));
+ reject(new Error('Tebakan yang bagus, tapi salah. Coba lagi!'));
}
}, 1500);
});
@@ -111,17 +112,17 @@ textarea.oninput = handleTextareaChange;
```html public/index.html
-That's right!
+Benar sekali!