Skip to content
New issue

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

Unexpected incorrect answer at Easy2's showAll #5

Closed
sisisin opened this issue Mar 22, 2020 · 1 comment
Closed

Unexpected incorrect answer at Easy2's showAll #5

sisisin opened this issue Mar 22, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@sisisin
Copy link

sisisin commented Mar 22, 2020

Expected behavior: it should be correct when assign string to arr
Actual behavior: incorrect answer...

function showAll(arr: ?): void {
  for (const val of arr) {
    console.log(val);
  }
}
@uhyo uhyo added the bug Something isn't working label Mar 22, 2020
@uhyo
Copy link
Owner

uhyo commented Mar 22, 2020

Thank you! The cause was that target was set to es3 through compiler options.
Fixed by setting it to esnext.

@uhyo uhyo closed this as completed in 9b9f975 Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants