Maximum 69 Number
Given a positive integer num consisting only of digits 6 and 9, return the maximum number you can get by changing at most one digit (6 becomes 9, and 9 becomes 6).
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)