You are here:   HomeJava ScriptJavascript StringJavaScript SubString
by Dinesh Thakur Category: Javascript String

This JavaScript Constructor property performs the same task as it does in the other objects that have it (like the Date and Array objects). . It sends back the value of the JavaScript Constructor function that created the String object's prototype. To use the JavaScript Constructor property, you have to use a String object rather than a literal


The following code writes the value of the JavaScript Constructor property onto a Web page:




<script type="text/javascript">

var guitar_string = new String("G");






This code produces text similar to the following:

function String() { [native code] }

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to contact us.

What's New and Popular

Search Content

Advance Courses

Basic Courses

Advertise with Us