Hi Bob,

Don’t we have any mailing list to ask JavaScript questions? I like mailing list 
rather than StackOverflow.com :(



> On Jan 1, 2016, at 10:56 PM, Bob Myers <[email protected]> wrote:
> 
> Seems like a good Stack Overflow question, take it there.
> 
> On Fri, Jan 1, 2016 at 10:54 PM, Arup Rakshit <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> Consider the below simple code :
> 
> 'k' instanceof String; // false
> new String('k') instanceof String; // true
> 
> Now, When I am inspecting them as below why in both cases the output comes as 
> [object String] ?
> 
> The below is understood as per the result of the `instanceof` operator.
> 
> Object.prototype.toString.call( new String('k') );  // "[object String]”
> 
> My confusion comes when I see the below code output :
> 
> Object.prototype.toString.call( 'k' );  // "[object String]”
> 
> Can anyone please explain it ?
> _______________________________________________
> es-discuss mailing list
> [email protected] <mailto:[email protected]>
> https://mail.mozilla.org/listinfo/es-discuss 
> <https://mail.mozilla.org/listinfo/es-discuss>
> 

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to