[nodejs] console.log not working

2014-12-29 Thread noderiety
Hello, I just finished installing nodejs on ubuntu. I wanted to do a simple Hello World to get started so I executed the following at the command prompt: node console.log('hello world') However, this returns the following error: -bash: syntax error near unexpected token '(' Any idea w

Re: [nodejs] console.log not working

2014-12-29 Thread Aria Stewart
> On Dec 29, 2014, at 2:12 AM, noderiety wrote: > > Hello, I just finished installing nodejs on ubuntu. I wanted to do a simple > Hello World to get started so I executed the following at the command prompt: > > node console.log('hello world') > > However, this returns the following error

Re: [nodejs] console.log not working

2014-12-29 Thread Peter Petrov
An alternative solution: echo "console.log('hello world')" | node On Monday, December 29, 2014 5:11:01 PM UTC+2, Aria Stewart wrote: > > > > On Dec 29, 2014, at 2:12 AM, noderiety > wrote: > > > > Hello, I just finished installing nodejs on ubuntu. I wanted to do a > simple Hello World to ge