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

last will be first first wil be last #2

Open
Jdub2024 opened this issue Oct 24, 2024 · 0 comments
Open

last will be first first wil be last #2

Jdub2024 opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested wontfix This will not be worked on

Comments

@Jdub2024
Copy link
Owner

The comma is already an operator in JavaScript. Comma separated values returns the last value in a list.

let foo = ("bar_wtfisGonigon_[]()", "baz");

console.log(foo); // baz

Tangentially, a debugging tip: do on:destroy={console.log(handler), handler} when want to log inline expressions in the Svelte curly braces to see what's what.

Originally posted by @kwangure in sveltejs/rfcs#58 (comment)

@Jdub2024 Jdub2024 added bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested wontfix This will not be worked on labels Oct 24, 2024
@Jdub2024 Jdub2024 self-assigned this Oct 24, 2024
@Jdub2024 Jdub2024 changed the title The comma is already an operator in JavaScript. Comma separated values returns the last value in a list. last will be first first wil be last Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant