Skip to content
Advertisement

Calculator not functioning properly

Hey I’m trying to make a small calculator for a project, however I’m struggling to get the code to work.

JavaScript

When I try to run operation 4, I want the code to ask if you would like to run another calculation, if you answer with ‘yes’ it will repeat the statement again. However all it does is stop the code. Sorry if it’s obvious I’m quite new to coding.

Advertisement

Answer

Try this…

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement