Monacaでのダイアログボックスを表示するにはAlert命令を使います。
0.最小限のプロジェクトを用意(最小限のプロジェクトの作り方)
1.書いてみます。 index.htmlファイル内の Your code hereを消して、
初期の状態
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script src="plugins/plugin-loader.js"></script>
<link rel="stylesheet" href="plugins/plugin-loader.css">
<script>
// Set virtual screen width size to 640 pixels
monaca.viewport({width: 640});
</script>
</head>
<body>
Your code here
</body>
</html>