AssignmentOperator-5

 

Example of JavaScript /= Operator: var x=10; x/=2 will result into 5. See the code snippet:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <h2>/= Operator</h2> <p id="sample"></p> <script> var x=10; x/=2; document.getElementById("sample").innerHTML = x; </script> </body> </html>
Output