khan academy - Javascript programming on Khanacademy. How come the buttons on the bottom half does not work? -


i working on calculator after setting buttons bottom half of buttons not react top half. please help.

link project: https://www.khanacademy.org/computer-programming/calculator/6690221911506944

this because of call btnx.draw.handlemouseclick() inside of mouseclicked function. if change following, work expected:

mouseclicked = function() {     btn7.handlemouseclick();     btn8.handlemouseclick();     btn9.handlemouseclick();     btndiv.handlemouseclick();     btn4.handlemouseclick();     btn5.handlemouseclick();     btn6.handlemouseclick();     btn1.handlemouseclick();     btn2.handlemouseclick();     btn3.handlemouseclick();     btnsub.handlemouseclick();     btn0.handlemouseclick();     btnc.handlemouseclick();     btnadd.handlemouseclick();     btnequal.handlemouseclick();     btnx.draw.handlemouseclick(); }; 

update: looks updated code calculator app, , removed btnx.draw.handlemouseclick function call - seems work. if answer helped you, please accept it.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -