Does normal javascript works on node – webkit or not? [closed]

Yes, normal Javascript works on Node webkit.

Node runs a Javascript V8 engine, so any JS function will be understood in Node.

Your error is the following :

var asd = document.title; //This is a string

setTimeout(asd(),1000); //You call asd as a function, which does not exist, hence the error

EDIT :

With the new variable name, that should work :

var blinkOrder = 20;
var blinkNumber = 12;
var asdf = document.title;
function asd(){
    if (blinkNumber >= blinkOrder) {
        document.title=" hi";
        blinkNumber = 0;
    }
    else{
        document.title = asdf;
        blinkNumber++;
        setTimeout(asd(),1000);
    }
}
asd();

Leave a Comment