hupili / datavis.studio

data-viz course/ slides/ projects
http://datavis.studio/
6 stars 6 forks source link

no answer show on website no matter how many times I click calculate #19

Open JimmyDingyiming opened 5 years ago

JimmyDingyiming commented 5 years ago
屏幕快照 2019-03-19 下午10 42 47 屏幕快照 2019-03-19 下午10 46 13

Hi, Guys, I do not know why I click the calculate button and it never gives me an answer. I think I follow the exact same scripts Pili has shown on class, what is wrong with my script?

ivywze commented 5 years ago

you spell it differently.

function caluculate (){} and document.getElementById("cal").addEventListener('click', calculate)

Just change to the same spelling.