Read-Only Mode: Your progress will not be saved, and certain functions are unavailable.Click here to sign upand access the full features of Cratecode.

Basic calculator

By: Cratecode

Now that we know about data types and variables, let's put everything together and build a basic calculator. This calculator will take two strings, convert them to numbers, add them together, then output them to the console. Open up index.js to get started!

Hey there! Enjoyed the lesson? Consider sharing it with others - it's a huge help and lets us keep making them!

Edit this lesson

Output is unavailable in read-only mode.

AI Assistant


Building a Basic Calculator