Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
javascript
basic
058wrapper_object_readonly.js
058wrapper_object_readonly.js
/** * This example shows that it is not possible to change String propety. */ var s = "test"; //this is string with length = 4 s.length = 2; //this will not take effect because string property is read only console.log(s.length); //4
Reload page
Preview
W3C validation
Edit Code
JS Console