Function Question


I’m tying to understand what’s going on in this function in this tutorial. It has a parameter of id, but I don’t get how the id is being used.

function toggleTaskCompleted(id) {

Here’s the link (below). On the right hand side, where it says ‘In this article’, click on ‘Completing a task’. It’s the ‘Proving the bug’ part. Thanks

Look below in the section “Synchronizing the browser with our data”.

Ya, I noticed it being used there after, but still wasn’t positive there wasn’t something I was missing, since they could’ve just added it in the next section with everything else.
Just wanted to be sure it wasn’t being used in some way I didn’t understand. Thanks

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.