If you want another code while working in the same code document, then use comments. Comment the previous code and add the alternative code to test it. After the testing completes, uncomment the previous code. In this way, you can test both the codes.
While using comments follow the below rules to create valid comments −
Any text between the characters /* and */ is treated as a comment. This may span multiple lines.