← All examples

Arrow function

JavaScript Lambdas

name = arrow → separate diagram

Flowchart (ISO 5807)

YesNoStartInput nn % 2 === 0Return «парне»EndReturn «непарне»EndFigure 1 — classify

Source code

const classify = n => n % 2 === 0 ? "парне" : "непарне";