We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 844243e commit 97a4ad7Copy full SHA for 97a4ad7
1 file changed
tests/snapshots/examples/factorial.ts
@@ -0,0 +1,12 @@
1
+
2
+{
3
+ function factorial(n: number): number {
4
+ if (n > 1) {
5
+ return n * factorial(n - 1);
6
+ }
7
8
+ return 1;
9
10
11
+ console_log(factorial(10));
12
+}
0 commit comments