Purus Education
JA
Lesson 04

Operators

Lesson 04 — Operators

日本語

Syntax

Purus replaces symbol operators with keywords, so you never need the Shift key:

PurusJavaScriptMeaning
a add ba + baddition
a sub ba - bsubtraction
a mul ba * bmultiplication
a div ba / bdivision
a mod ba % bremainder
a pow ba ** bexponentiation

Task

With a be 7 and b be 3, compute sum, difference, product, remainder, and power using the operators above.

Check

npm test 04

Learn more

Loading editor...
Press Ctrl+Enter to run