I simply suggested to use document.write() to quickly display the result to the screen for observation!
And I explained to you that you can't "document.write()" from Node... neither quickly nor slowly
I simply suggested to use document.write() to quickly display the result to the screen for observation!

Sotos wrote:I simply suggested to use document.write() to quickly display the result to the screen for observation!
And I explained to you that you can't "document.write()" from Node... neither quickly nor slowlydocument.write is something you do with HTML etc documents in a browser! If you want to output something quickly with Node you use console.log() ... you didn't know this basic thing and you want to present yourself as a Node expert?

Pyrpolizer wrote:I guess the original question should have been:
What programming language/s do YOU use? What can YOU do with it? What are the capabilities of this language? How would you grade yourself beginner, intermediate, advanced.
So let's start all over again Sotos, GR, et al.

Get Real! wrote:Sotos wrote:I simply suggested to use document.write() to quickly display the result to the screen for observation!
And I explained to you that you can't "document.write()" from Node... neither quickly nor slowlydocument.write is something you do with HTML etc documents in a browser! If you want to output something quickly with Node you use console.log() ... you didn't know this basic thing and you want to present yourself as a Node expert?
Baloney! You can mix javascript and Node.js no problems!
You can read a file into variable "S", make your changes to string "S", and then output to screen in a dozen ways... be it console.log or document.write!
Ade mana mou, bienne na pessis tzie enna bais skolion avrio!
![]()
![]()

Sotos wrote:You are clueless"document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.

Get Real! wrote:Sotos wrote:You are clueless"document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.
Hahaha... you probably just read that Node.js is sever-side javascript (which is true) and automatically assumed that you can't use it client-side!
Eneshis ybothesi...

Sotos wrote:Get Real! wrote:Sotos wrote:You are clueless"document.write" would be relevant only for doing something within a browser. Each web page loaded in the browser has its own "document" object. That object has properties such as "document.doctype" which holds the doctype of the HTML page, or "document.title" that contains that page title. There is no "document object" outside of a browser and therefore no such thing as "document.write()" (which is a method of the document object). So you can't use document.write() unless you are running javascript within a browser.
Hahaha... you probably just read that Node.js is sever-side javascript (which is true) and automatically assumed that you can't use it client-side!
Eneshis ybothesi...With Node.js you run javascript OUTSIDE of a browser, which can be any computer either you call it "server" or "GRs home computer". If you are running Javascript inside a browser then you are using the JavaScript engine of your browser, and it is only when you use the JavaScript engine of your browser that you can "document.write()" . I am not going to waste any more of my time with this. Anybody who knows Node.js knows that you are cluless. Anybody who doesn't know Node.js would again know that you are clueless because you constantly say nonsense in the forum and they should be complete idiots to take your word over mine


Get Real! wrote:Pyrpolizer wrote:I guess the original question should have been:
What programming language/s do YOU use? What can YOU do with it? What are the capabilities of this language? How would you grade yourself beginner, intermediate, advanced.
So let's start all over again Sotos, GR, et al.
I’ve already given you a link of my work so I’m sure you can download, install, and evaluate yourself.
As for Sotos… he’s got nothing to show for it because he can’t write jackshit anyway!![]()
I mean the poor guy didn’t even know you could write programs in Excel!![]()

var fs = require("fs"), f = process.argv[2];
fs.readFile(f, 'utf8', function(error, text) {
fs.writeFile(f, text.replace(/(“|”)/g, '"').replace(/’/g, "'"));
});

Users browsing this forum: No registered users and 1 guest