Re: [nodejs] String issue

2013-02-04 Thread Ismael Gorissen
Nice it works now !! Thank you ;) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodej

Re: [nodejs] String issue

2013-02-04 Thread Ismael Gorissen
Thank you for this reference, I will buy it ;) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send e

Re: [nodejs] String issue

2013-02-04 Thread Daniel Rinehart
Node.js behaves the same way as JavaScript in the browser, that is the backslash (\) is used to escape the next character in a JavaScript string defined in code. In your example since you define the string using single quotes (') the backslash is needed to prevent the single quote in (I'm) from ter

Re: [nodejs] String issue

2013-02-04 Thread Eric Muyser
Hi Ismael, See: Escape Sequences in String Literals via https://www.inkling.com/read/javascript-definitive-guide-david-flanagan-6th/chapter-3/text Buy the book. Cheers On Mon, Feb 4, 2013 at 11:56 PM, Ismael Gorissen wrote: > Hi, > > I'm a beginner with JavaScript language and Node.js framewor

[nodejs] String issue

2013-02-04 Thread Ismael Gorissen
Hi, I'm a beginner with JavaScript language and Node.js framework. I have a small issue with strings :) When I use this : > var str = 'What\'s your name?'; console.log(str); In the console the backslash is not showed .. > What's your name? But if I put this string in a file, I have the ba