add query for detecting uses return-values from functions that does not return a value

This commit is contained in:
Erik Krogh Kristensen
2019-09-23 18:25:18 +02:00
parent 24a5301d87
commit bed14244ae
7 changed files with 186 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
var stage = require("./stage")
function renderText(text, id) {
document.getElementById(id).innerText = text;
}
var text = renderText("Two households, both alike in dignity", "scene");
stage.show(text);