How to recreate the code


I am trying to get the code work in my browser. I followed the steps in the achieve but my page is always blank and I am not sure what I am doing wrong.index.txt (576 Bytes)

My index file is attached.


var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];

var myName = "Shay";
var orange=[40,100,60];
var red=[0,100,63,]; if(12> 3){ bubbleShape= "circle"; }
else { bubbleShape="square"; }
var green=[75,100,60];
var blue=[196,77,55];
var purple=[280,50,60];
var letterColors = [red, orange, green, blue, purple];

drawName(myName, letterColors);


In your

C:\Users\shalya\Documents\HTML Projects\Name Project\

Do you have both your:



And the file you are viewing with your browser is the index.html file?


Thanks for your help. Yes I am viewing the index file. I attached both files. main.txt (455 Bytes)index.txt (576 Bytes)
I have them both in the correct html and js formats but had to change the ext. in order to upload here.


I've got it working here now but I'm not sure what the final key was.

Try this, add an http: to this URL:

<script type="text/javascript" src=""></script>

It's late here so I will check in again tomorrow.


Thank you. Adding the http resolved this issue. :smiley: