30.9k views
5 votes
I do not know what I am supposed to do someone help please.​

I do not know what I am supposed to do someone help please.​-example-1

1 Answer

2 votes

Answer:

The expatiation about errors and their solutions is given below in explanation section

Step-by-step explanation:

Variables and functions Declaration Error:

In this program, variables are not declared properly according to the programming rules.

  • var size of color

i.e. the variable " size of color" has space between words, the proper declaration of this variable is to omit the space between the words e.g. sizeOfColor.

  • var 1dimension

Some programming language restricts to declare a variable that starts with numbers. Please write this variable in this way: var dimension1.

  • fill() function

fill function is not properly declared and initialized. two errors are in this function. one, this function is using curly bracket "{}" instead of small bracket "()". the second error is, you are passing it string value while it is expecting integer value. the solution is: remove the curly bracket and put a small opening and closing brackets at the place of curly brackets and assign integer value.

  • eclipse function

in the eclipse function, the way of assigning variables is incorrect. for example the variable "size of color" has space between words and variable "1dimension" is started with a number.

User Uttam Ughareja
by
3.8k points