<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <script> var x = new String("This is a string object"); alert(typeof(x)); changestring(x); alert(x); function changestring(x) { x = "Altered String"; } </script> </head> <body> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)