Christopher Posted October 5, 2013 Share Posted October 5, 2013 To create and call your own function: 1. Open today.js in your text editor or IDE. 2. Begin defining a new function: // This function is used to update the text of an HTML element. // The function takes two arguments: the element’s ID and the text message. function setText(elementId, message) { ‘use strict’; In the book, the '//' is not printed in front of 'text message.' Link to comment Share on other sites More sharing options...
Larry Posted October 5, 2013 Share Posted October 5, 2013 I think that's a continuation of the previous line. Link to comment Share on other sites More sharing options...
Recommended Posts