Simple-JavaScript-Calculator icon indicating copy to clipboard operation
Simple-JavaScript-Calculator copied to clipboard

While multiplying using brackets, It shows invalid

Open webricated opened this issue 3 years ago • 1 comments

10(2)= 20 ------>Needed 10(2)=PLEASE INPUT VALID EXPRESSION

webricated avatar May 14 '22 08:05 webricated

Screenshot_2022-05-14-13-41-28-71_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

webricated avatar May 14 '22 08:05 webricated

I fixed this specific issue in PR #5 However, there's no possibility to use bracket multiplication twice yet.

For example:

2(5(2)) = PLEASE INPUT VALID EXPRESSION ---> current

instead of

2(5(2)) = 20 ---> correct

You can probably fix this with the method I created, just gotta get a bit more in depth.

mnaray avatar Aug 12 '22 11:08 mnaray

Thanks, @mnaray! However, it doesn't seem to be working on keypress event(s). Kindly create a new PR or I will try to fix that later.

harsh98trivedi avatar Aug 12 '22 11:08 harsh98trivedi

Thanks, @mnaray for fixing the issue!

harsh98trivedi avatar Aug 15 '22 16:08 harsh98trivedi

You're welcome. Lmk if you meed help with something else!

mnaray avatar Aug 15 '22 17:08 mnaray