-
-
Notifications
You must be signed in to change notification settings - Fork 42.2k
Open
Open
Enhancement
Copy link
Labels
archived courseworkthe scope is archived coursework, it's lower priority than current curriculumthe scope is archived coursework, it's lower priority than current curriculumscope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.Lessons, Challenges, Projects and other Curricular Content in curriculum directory.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.Under discussion threads. Closed as stale after 60 days of inactivity.
Description
Describe the Issue
In step 31 we are asked to add a check that the value doesn't contain the id. As far as I can tell, this is to avoid a function call containing its own cell value.
However, the ids are uppercase, and the check is not converting the value.
A1 = 10
A2 = 10
A3 = =sum(a1, a2) -> 20
A1 = 10
A2 = 10
A3 = =sum(a1, a3) -> undefined (and Potential infinite loop in console)
But if you toUpperCase the value, that doesn’t happen.
Edit: As also pointed out in the thread, includes will match on partial strings. Causing a false positive with the value converted.
!"A11".includes("A1")
A1 = =sum(a2, a11)
A2 = 10
A11 = 10
Affected Page
Your code
Expected behavior
Calling one of the functions with its own cell reference passed in as an argument should not run.
Screenshots
No response
System
- Device: [e.g. iPhone 6, Laptop]
- OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
- Browser: [e.g. Chrome, Safari]
- Version: [e.g. 22]
Additional context
Metadata
Metadata
Assignees
Labels
archived courseworkthe scope is archived coursework, it's lower priority than current curriculumthe scope is archived coursework, it's lower priority than current curriculumscope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.Lessons, Challenges, Projects and other Curricular Content in curriculum directory.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.Under discussion threads. Closed as stale after 60 days of inactivity.