Learn Create Your Own Split Screen

Next Page

In Scratch, we use Ask and Say.

In Javascript, we use prompt and alert.


In Scratch, "Ask" always puts the answer in an automatic variable called "answer".

In Javascript, you put the answer in whatever variable you like.  


In Scratch, you can't control the placement or appearance of these dialogs, and likewise neither can we in Javascript.

(Actually, because Javascript is so powerful, there is a way to precisely control the look and feel of dialogs, but for the moment we'll stick to the simple method)