python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Reassining variables
I was doing a test project just to train my Python and I stumbled upon something that I don't quite understand so I would appreciate if someone explained it to me.
Below, I'm giving two similar Test s...

Aleks K.
Votes: 0
Answers: 1
When splitting the assignment operation (n1,n2 = n2, n1+ n2 ) below, into n2 = n1+n2 and n1=n2 separately, the code doesn't work properly, why?
Guys I'm trying to print the first 8 elements of the Fibonacci sequence and just want to understand one piece of code. When performing an assignment operation in a single line (n1,n2 = n2, n1+ n2) the...
Zohrab
Votes: 0
Answers: 3
Typescript: Return a reference object that can be assigned to?
I have an existing set of classes that have a number of spots where they get, and one spot where they set, a named property from an array, i.e.
return object[index];
// or
object[index] = newValue;
D...
Trevortni
Votes: 0
Answers: 1
Understanding const reference in assignment when constructing object
Today I see this piece of code and I'm wondering to know what it is exactly doing this const reference in an assignment where a new object is created. (I don't know how to name this kind of assignment...
cbuchart
Votes: 0
Answers: 2