If you were writing a pop science book and wanted to include a very simple computer program to illustrate a point, what language would you use to give the most readers the best chance? Javascript? Python? BASIC?
I find Python to be the most readable for lay people. It eliminates a lot of the punctuation and such that non-programmers often find hard to parse. If the code is well factored it often comes across as executable pseudocode.