We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found this funny using one of your examples...
Duplicated the switch statement, one in the if the other in the else. The IF switch renders fine the ELSE renders wrong.
const code = ` function switchSampleFromMDN() { const foo = 0; const bar = 0;
if (bar > 10) { switch (foo) { case -1: console.log('negative 1'); break; case 0: console.log(0); case 1: console.log(1); return 1; default: console.log('default'); } } else { switch (foo) { case -1: console.log('negative 1'); break; case 0: console.log(0); case 1: console.log(1); return 1; default: console.log('default'); } } }
`;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Found this funny using one of your examples...
Duplicated the switch statement, one in the if the other in the else. The IF switch renders fine the ELSE renders wrong.
const code = `
function switchSampleFromMDN() {
const foo = 0;
const bar = 0;
`;
The text was updated successfully, but these errors were encountered: