Khan / Khan/live-editor

Yoko Oh Noes confuse about local v. global function names

Open
#734 1 comment 0 reactions 0 assignees View on GitHub
bug pjs
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

Refer to https://www.khanacademy.org/computer-programming/global-v-local-confusion/6708041267363840 . Within a function, another function called "red" is declared. That function cannot be invoked because it does not have the correct number of arguments that correspond to the (global) Processing.js "red" function.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Khan Academy example and reproduce the local-versus-global `red` call in the browser-based live editor. Trace the function-name resolution entry point, then define a regression case for the intended local invocation while preserving the global Processing.js `red` behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.