0

Is this possible?

I want to do something like make a number be in more than one place that I choose and that this number changes depending on the value I give. I guess it is possible, but in which language can I do it?

22nd Apr 2020, 5:44 AM
Laura
Laura - avatar
3 RĂ©ponses
+ 2
you can do that in most or all of the languages. JavaScript: —————— var x = 1; —————- you can change three, by using variable x. So if you want to change to 8, you do x = 8 if you want to change it to 1000 you’d do x = 1000
22nd Apr 2020, 6:05 AM
Ginfio
Ginfio - avatar
+ 1
https://code.sololearn.com/WoxwFlhqRcSG/?ref=app You can experiment with this code here. Just change x’s value to any thing you want. var x = 3; x = 374; x = 2; x = 1010202028383 x = 85 ... ANY NUMBER.
22nd Apr 2020, 6:07 AM
Ginfio
Ginfio - avatar
+ 1
Thanks a lot!!!
22nd Apr 2020, 7:04 AM
Laura
Laura - avatar