How to plot y value of a math function in javascript?

后端 未结 0 529
野的像风
野的像风 2021-02-18 23:34

I\'ve never touched javascript before, and I got stuck on that.

How do I get the Y value every 0.5 between 5 and -5?

var x;
for(x=-5;x<5; x = x + 0.5){
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题