In JavaScript can I make an Array that contains variables?

Hi there,
Here is among what Setting up.
May i do this

Th motive I ask, is because of the following code does not work, and I am searching a technique around the idea.(I here’s new to be able to JavaScript.)

I’m if there’s a reason why that does work, so if someone might explain that to me too, that may be excellent!

Thanks in advance.
-JDDellGuy

Hello, Delightful back JDDellGuy,

Yes you possibly can make an array which has elements, Here’s how

You didn’t provided curly braces to help specify which will code must execute should the condition is actually satisfied

The overall syntax with if other than them is

if(condition is definitely true)
report 1;
else
report 2;

OR PERHAPS

if(condition is definitely true)

report 1a;
report 1b;
…..

else

report 2a;
report 2b;
….

To put it briefly, if you can find a few line with code which needs to be executed as soon as condition well said, then there should be braces

With thanks.Hope it helps, please place back if you would like more help

In wanting over the program, where are you currently assigning attitudes to ‘h’.You employ ‘h’ within an whenever statement, but I do not see that assigned wherever.

Leave a Reply