Search code examples
javascriptkhan-academy

Running javascript on Khan academy page


enter image description here

I'm working through The Algorithms section of Khan Academy. I'm working on the challenge at https://www.khanacademy.org/computing/computer-science/algorithms/binary-search/p/challenge-binary-search

How do I run the program, after I write it?


Solution

  • It runs automatically. Try removing the println line of code and you will see the black box that is outputting the result disappears.