javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial

Home Page:https://javascript.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function naming convention

shadybassily opened this issue · comments

in Functions section, exactly inside naming conventions, you recommend to prefix a function with check... if the function returns a true/false, yet in one of the examples, you named a function isPrime that returns true if a num is prime.

I don't believe it matters that much as long as function names are meaningful.

This is a convention but conventions can change by project to project.