Hey, right now you’re assigning “b” to “a” instead of “a” to “b”. Hope that helps!
If it makes it easier to understand, "assigning’ is like “giving”. Your essentially giving the contents of one to the other. The variable on the left is receiving the contents from the variable on the right. As such, right now, you’re giving the contents of “b” to “a”.
El hacer b=7; No es necesario. Esa no fue la pregunta. esa linea de codigo debe ser eliminada.
Luego a=b; Si borrastes la linea anterior, “b” no tendria ningun valor, seria igual a undefined. Y al hacer “a=b”, lo que haces es darle a “a” el valor de “b”, es decir undefined. ( a = b = undefined )
Y la pregunta es darle a “b” el valor de “a”. Lo que deberia ser igual a ( b = a = 7).
Espero se pueda entender.