Output

Computer Monitor

One way to output data and information in JavaScript is to use the alert command.

Type the following code that shows the use of the alert command. Note: make sure that you type it in exactly because JavaScript is case sensitive, that is, you must type the alert command as alert (all lower case) rather than Alert which would be viewed as being completely different.

<html>

<head>

<script type='text/javascript'>

var placename = ' ' ;

PlaceName = 'World' ;

alert ('Hello ' + PlaceName) ;

</script>

</head>

<body>

</body>

</html>

Next: Sequence Design 1 – SquareSystem