<script>
var world1="a";
var world2="nam";
var world3="nal p";
var world4="lan a c";
var world5="a man a p";

var phrase="";

for(var i=0; i<4; i++)
{
if(i==0)
{phrase=world5;}
else if(i==1)
{phrase=phrase+world4;}
else if(i==2)
{phrase=phrase+world1+world3;}
else if(i==3)
{phrase=phrase+world1+world2+world1;}
}
alert(phrase);
</script>

var einarray = new Array();
einarray[0]=78;
einarray[1]=79;

var einarray=[78,79]; 

var ein = document.getElementById("nameId");
ein.innerHTML="einText";

window.onload=functionName;
Wait while more posts are being loaded