How to check/test the output of a function without compiling the app in React?

后端 未结 0 984
予麋鹿
予麋鹿 2020-12-04 10:24

Let\'s say that I have a class in javascript with a method that takes a number and multiplies it by two:

class Foo {
  timesTwo(n) {
    return n * 2;
  }
...         


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