Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Node issue - prints 'undefined' for any action.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ketan mehta  
View profile  
 More options Oct 10 2012, 3:29 am
From: ketan mehta <ketanmah...@gmail.com>
Date: Wed, 10 Oct 2012 00:29:49 -0700 (PDT)
Local: Wed, Oct 10 2012 3:29 am
Subject: Node issue - prints 'undefined' for any action.

Hi,
   I am using *Window 7* and I have installed Node.js from
http://nodejs.org/download/ (*Windows Installer (.msi) 64 bit*). Is there
anything apart from this needs to be installed to work with Node?
   In Node window, even if I just type console.log('hello'); and press
enter, it prints the word 'hello' but in second line it prints 'undefined'.
Please refer the attached screen shot. What shall be the problem?

Thanks,
Ketan

  Node Issue.png
41K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Oct 10 2012, 10:57 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 10 Oct 2012 16:57:47 +0200
Local: Wed, Oct 10 2012 10:57 am
Subject: Re: [nodejs] Node issue - prints 'undefined' for any action.

On Wed, Oct 10, 2012 at 9:29 AM, ketan mehta <ketanmah...@gmail.com> wrote:
> Hi,
>    I am using Window 7 and I have installed Node.js from
> http://nodejs.org/download/ (Windows Installer (.msi) 64 bit). Is there
> anything apart from this needs to be installed to work with Node?
>    In Node window, even if I just type console.log('hello'); and press
> enter, it prints the word 'hello' but in second line it prints 'undefined'.
> Please refer the attached screen shot. What shall be the problem?

Nothing. console.log() prints a string and returns undefined, that's
what you're seeing. Instead of console.log('hello') try 'hello' and
nothing else.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »