Files
2018-08-02 17:53:23 +01:00

31 lines
611 B
JavaScript

function connectAndLog(id) {
log.info(`Connecting to ${id}`)
let connection = openConnection(id)
if (!connection) {
log.error('Could not connect to ${id}')
}
}
function emitTemplate(name, date) {
writer.emit("Name: ${name}, Date: ${date}",
{ name: name, date: date });
}
var globalVar = "global";
function foo() {
log.error('globalVar = ${globalVar}');
}
log.error('globalVar = ${globalVar}');
function bar() {
log.error('Something ${notInScope}');
}
function baz(x){
log.error("${x}");
log.error("${y}");
log.error("${x} ");
log.error("${y} ");
}