function square(n) {
return n * n;
}
square("2");
flow
run without error? One comment is missing
// @flow
function square(n) {
return n * n;
}
square("2");
Only comments with flow are checked
Read More:
- Error in nextTick: “TypeError: Cannot set properties of undefined (setting ‘checked‘)“
- [Solved] Nuxt Import qrcodejs2.js / QRCode.js Error: document is not defined
- [Solved] react-router-dom Error: index.js:1 Warning: Functions are not valid as a React child.
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] node.js Upload Files Error: Multipart: boundary not found multer
- vue.config.js build Package UglifyJsPlugin to clear console and print console.log Error: `warnings` is not a supported option
- [Solved] JS Error: Uncaught SyntaxError: Illegal return statement
- Solution to some map files in JS folder after Vue packaging (remove the map. JS file)
- [Solved] mqtt.js Error: n.createConnection is not a function
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘ in
- JS native implementation Promise.all
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/_@babel_runtim
- [Solution] VUE.js Load a local image with parameters in the script
- [Solved] JS Error: Uncaught TypeError: Cannot set properties of null (setting ‘innerHTML‘)
- JS uses onerror to automatically catch exceptions
- The addition, deletion and modification of DOM in JS Foundation
- JS to determine whether the string contains a character