swapping of two numbers in javascript without third variable.
var a = 10;
var b = 20;
document.write(""Before Swapping");
document.write(""a = "+a);
document.write(""b = "+b);
b = [a,a=b][0];
document.write(""After Swapping");
document.write(""a = "+a);
document.write(""b = "+b);
On this page of the site you can watch the video online Swapping numbers using an Array (without third variable) | JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Codingflag 19 June 2017, share the link with friends and acquaintances, this video has already been watched 3,254 times on youtube and it was liked by 28 viewers. Enjoy your viewing!