1st:- var myString = new String('male'); // An object.
2nd:- var myStringLiteral = 'male'; // Primitive string value, not an object.
Ans: Both will call String()
constructor function
You can confirm it by running the following statement:
console.log(myString.constructor, myStringLiteral.constructor);