दो चर स्वैप करें. JavaScript

दो चर स्वैप करें. JavaScript



एक अस्थायी चर का उपयोग करना
JavaScript example code

JavaScript

  Output result
Enter the first variable: 4
Enter the second variable: 2
The value of a after swapping: 2
The value of b after swapping: 4
es6 (ES2015) का उपयोग करना विनाशकारी असाइनमेंट
JavaScript example code

JavaScript

  Output result
Enter the first variable: 4
Enter the second variable: 2
The value of a after swapping: 2
The value of b after swapping: 4

Hot Network Questions



.dll file is missing? Download for Windows 7, 8, 10 - Fix .dll file Missing Error on Windows | dll-box.com

BeeCoder.ORG

open source code and examples

We have been online since 2021 and 1 millions of people around the globe have visited our website since then

More visitors every month