File tree Expand file tree Collapse file tree
javascript/ql/src/Statements Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66<p >
77JavaScript functions that do not return any value will implicitly return
88<code >undefined</code >. Using the implicit return value from such a function
9- is not an error in itself, but it is a pattern indicating that some
10- misunderstanding has occurred.
9+ is not an error in itself, but it is a pattern indicating that some
10+ misunderstanding has occurred.
1111</p >
1212
1313</overview >
@@ -31,6 +31,12 @@ an error.
3131
3232<sample src =" examples/UseOfReturnlessFunction.js" />
3333
34+ <p >
35+ The program can be fixed either removing the use of the value returned by
36+ <code >renderText</code >, or by changing the <code >renderText</code > method
37+ to return a value.
38+ </p >
39+
3440</example >
3541<references >
3642<li >Mozilla Developer Network: <a href =" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return" >Return</a >.</li >
You can’t perform that action at this time.
0 commit comments