diff --git a/javascript/index.js b/javascript/index.js index 2ac1517..5bd1f90 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -12,11 +12,14 @@ fs.chmodSync(argOne, mode) const mode2 = fs.constants.S_IXUSR; const flags = 'w' fs.open('temp_foo', flags, mode2, function (err, f) { + if (err) { return console.error(err); } + console.log(f); console.log("File opened!!"); + }); fs.writeFileSync("temp_programming.txt", "foo", {mode:fs.constants.S_IXUSR | fs.constants.S_IRUSR }); @@ -25,8 +28,10 @@ new Buffer(5); new Buffer(res.body.size); function getVarFromObject(someVar, obj) { + obj.escapeMarkup = false; const someObjVar = {s: someVar} + const val = obj[someObjVar.s] return val } @@ -37,3 +42,4 @@ eval(String(expression)); +