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

Using .innerText or .content as an argument #24

Open
hfaerber opened this issue Sep 11, 2019 · 0 comments
Open

Using .innerText or .content as an argument #24

hfaerber opened this issue Sep 11, 2019 · 0 comments

Comments

@hfaerber
Copy link
Collaborator

We have two functions that are nearly identical: "instantiateInitialTask()" & "reInstantiateTask()". The only difference between the two is how we are accessing the information(object) within the array - as we are looping through two different arrays with different contents due to the parameters the information we are trying to access is different. array[i].innerText vs array[i].content. That is the only difference between the two functions. We could not figure out how to update that dot notation via a parameter or any other way outside of having two different functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant