How to test?
> node {PATH TO FILE}> node /Users/Test/Downloads/example.jsconsole.log('Raw output:', response);> node /Users/Test/Downloads/example.js
Raw output: example responseconst value = 10;
if (value > 20) {
console.log("Value is greater than 20.");
} else {
console.error("Error: Value is not greater than 20.");
}> node /Users/Test/Downloads/example.js
Error: Value is not greater than 20.function search(html){
// Some code
}
search(`html or something idc`);
// WARNING: Use backticks for multi line inputs!Last updated