a is of style Object, whilst b is of variety string. Just take into account that creating a string object using the String constructor generates a little something of type Object that behaves like a string usually

http://bestcodehtml.com/getting-my-javascript-to-work-javascript-function-javascript-object-how-javascript-works/