algorithm:算法练习

时间:2024-04-21 15:52:38
【文件属性】:

文件名称:algorithm:算法练习

文件大小:128KB

文件格式:ZIP

更新时间:2024-04-21 15:52:38

JavaScript

算法 算法练习 1.安装 npm install jest -- save - dev npm install babel - jest @ babel / core @ babel / preset - env regenerator - runtime - D 编辑package.json { " scripts " : { " test " : " jest " } } 编辑.babelrc { " presets " : [ " @babel/preset-env " ] } 2.创建js文件 function sum ( a , b ) { return a + b ; } export default sum import sum from './index' test ( 'adds 1 + 2 to equal 3' , ( ) => {


【文件预览】:
algorithm-master
----.gitignore(310B)
----README.md(579B)
----code()
--------day2()
--------day7()
--------day4()
--------day5()
--------day3()
--------day6()
--------day1()
--------index.js(57B)
----test()
--------day2()
--------day7()
--------day4()
--------day5()
--------day3()
--------day6()
--------day1()
--------test.js(104B)
----package.json(625B)
----.babelrc(38B)
----package-lock.json(227KB)

网友评论