Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

pjs.log() logs a line of code to the console. JavaScript syntax highlighting is applied to the line. This API is normally used internally by the command line parameter -rlog. The line number, the line of code itself, and field name / value pairs are logged.

Parameters

  1. Line number
  2. Line
  3. Field Names Array

Example

pjs.define("a", { type: "integer" });
pjs.define("b", { type: "integer", initValue: 15 });
pjs.define("c", { type: "integer", intiValue: 5 });
a = b / c;
pjs.log(4, "a = b / c;", ["a", "b", "c"]);
 
// The following will be send to the console
// 4: a = b / c;  // a=3, b=15, c=5

 

 

  • No labels