pg 225 test indicating the progress of a script

by Lucille Kenney

JavaScript

/*NOT WORKING*/

/* The following function defnes a simple routine for indicating the progress of a script, which can be used as a debugging tool (Figure 7.3) */

function reportStatus(message) {
    console.log('Now at step: ' + message + '\n');
}

reportStatus(‘Just did some stuff’);

reportStatus(‘Just did some other stuff');