I need a function to make a string camelcase using only javascript. I want this without builtin functions like split and all. Please include an explanation.
If I have "dean john" I want it to be changed to "Dean John".
var myString = "Hello world!";
var myArray = [];
var out= ""
for (var i=0; i < myString.length; i++){
    myArray.push(myString[i]);
    //myArray.pop(myString[i]);
    myArray[0].toUpperCase();
}
alert(myArray)
Desired output:
Hello World
I don't want to use split or any other builtin function.
 
     
     
     
     
    