# When are arithmetic operator priorities typically taught in school, in relation to computer programming?

When are operator priorities for addition, subtraction, multiplication and division typically taught in school? This this obviously differs by geography, I'm trying to understand how common it is for computer programming languages (JavaScript, more precisely) to be taught before operator priorities.

I know some forms of programming (e.g. Logo) may be taught quite early, but I doubt they're taught before the fact that * and / have higher priority than + and -.

• Why do you assume that JavaScript is taught in school at all? Do you have references for that or do you know of an area where it is rather common? Are you only asking for certain areas (e.g. the US), or do you want world wide statistics? – Dirk Jul 5 '17 at 10:41
• I don't have much of a citation (e.g. corestandards.org/Math/Content/5/OA), but "PEMDAS" is already taught by late elementary school many places in the US so presumably what you want is even earlier. – kcrisman Jul 5 '17 at 13:11
• @kcrisman: Your comment should be turned into an (likely the best possible) answer. – Daniel R. Collins Jul 5 '17 at 13:49
• I guess mods can do that? – kcrisman Jul 5 '17 at 14:43
• I was under the impression that the order of operations was taught at about the same time as the operations themselves. For example, counting, adding, and subtracting in first grade; adding, subtracting, multiplying and dividing in second and third grade; exponentiation in fifth grade; functions in seventh through twelfth grade. Computer programming is typically taught to students who already know how to multiply and divide. Is my impression consistent with that of people who have worked with grade school students more recently than I have? – Jasper Jul 5 '17 at 21:28