-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Error: Refactoring The todo app #4020
Comments
@wickedwisdom0911 I can take on this. May I ? Can you tell me the systematic process of creating a PR. |
Can I do it because it's my first hacktober fest? Wanted a bit of PRs. If
you too wanna take it you can refactor other functions.
…On Sat, Oct 8, 2022, 1:12 AM RUPAK ***@***.***> wrote:
@wickedwisdom0911 <https://github.com/wickedwisdom0911> I can take on
this. May I ?
—
Reply to this email directly, view it on GitHub
<#4020 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASWHKPIGYA2R25YGV3LNUITWCB4KLANCNFSM6AAAAAAQ7RB5V4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what the event listener in the todo app looks like in fresh.js.
add.addEventListener("click", function() {
create(input.value);
save(input.value);
tick();
input.value = "";
});
Would like to refactor it like this , so that it looks readable
function add () {
create(input.value);
save(input.value);
tick();
input.value = "";
});
add.addEventListener("click", add);
The text was updated successfully, but these errors were encountered: