23 lines
366 B
Plaintext
23 lines
366 B
Plaintext
![]() |
Call a non-callable symbol will result in a TypeError at execution.
|
||
|
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
----
|
||
|
function foo(a) {
|
||
|
return a * 2;
|
||
|
}
|
||
|
// ....
|
||
|
var foo = 1;
|
||
|
// ...
|
||
|
foo(); // foo is 1 => TypeError
|
||
|
----
|
||
|
|
||
|
|
||
|
ifdef::env-github,rspecator-view[]
|
||
|
== Comments And Links
|
||
|
(visible only on this page)
|
||
|
|
||
|
include::comments-and-links.adoc[]
|
||
|
endif::env-github,rspecator-view[]
|