Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.lang.javascript Subject: Re: Laying out node.js like PHP..? Date: Sat, 22 Dec 2018 11:58:48 -0700 Lines: 17 Message-ID: References: <17mzlt13e4wyt.3hahuzc9ws0r.dlg@40tude.net> <5c1e04a5$0$22337$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net L0o0svysryY3xHkS4T3fdgraonXaPy7FwrOkJc8pwCT5kvdxuA Cancel-Lock: sha1:vPVIhy4zRwK5/+15DsBmPq7hwDo= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 In-Reply-To: <5c1e04a5$0$22337$e4fe514c@news.xs4all.nl> Xref: csiph.com comp.lang.javascript:35928 On 12/22/2018 02:32 AM, Luuk wrote: > On 21-12-2018 23:44, JJ wrote: >> Node.js is a server script. It doesn't have a `console` object. > > what is this piece of doc than describing? > > https://nodejs.org/api/console.html > I think the OP is confused between the node executable, the server side script that it runs, which isn't usually called node.js although I suppose you could, and the various approaches to serving up dynamic pages. I prefer Express and Handlebars but I'm old school. Be nice to know what he's trying to do.