Help with an exercise

I don´t understand the part that says a should be assigned to b using =
could anyone explain?


b = 7
var a;
a = 7;
var b;
a = b;
// Cambia solo el código debajo de esta línea
   **Información de tu navegador:**

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36

Desafío: Asigna el valor de una variable a otra variable

Enlaza al desafío:

A variable is like a container.
If container A is worthy £100 and I give you another empty container B and your task is to assign the value of container A to container B.

So here you just use an assignment operator = to equal a to b because both variables had already been declared for you and a has got a value already which you must assign to b so that they are of equal value.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.