Flashot

grad_bg
index.js
1
2
3
4
5
6
function fibonacci(n) {
  if (n <= 1) return n;
  return fibonacci(n - 1) + fibonacci(n - 2);
}

console.log(fibonacci(10)); // 55
Click to edit
600px
400px

Export

Format

JSON Data

39 lines
1{
2 "code": "function fibonacci(n) {\n if (n <= 1) return n;\n return fibonacci(n - 1) + fibonacci(n - 2);\n}\n\nconsole.log(fibonacci(10)); // 55",
3 "settings": {
4 "language": "javascript",
5 "theme": "dracula",
6 "background": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
7 "showBackground": true,
8 "padding": 30,
9 "borderRadius": 10,
10 "showWindowHeader": true,
11 "windowHeaderAlign": "left",
12 "fontFamily": "Fira Code",
13 "fontSize": 14,
14 "showTrafficLights": true,
15 "showTrafficLightsColor": true,
16 "showFileName": true,
17 "fileName": "index",
18 "fileNameOpacity": 0.5,
19 "fileNameFontWeight": 400,
20 "fileNameFontSize": 13,
21 "showLineCount": false,
22 "lineCountOpacity": 0.5,
23 "lineCountFontWeight": 400,
24 "lineCountFontSize": 13,
25 "exportType": "image",
26 "exportFormat": "webp",
27 "wordWrap": false,
28 "showCaption": false,
29 "captionText": "Figure: Sample code snippet",
30 "captionStyle": "normal",
31 "captionOpacity": 0.5,
32 "captionPosition": "bottom",
33 "showLineNumbers": true,
34 "lineNumberOpacity": 0.5,
35 "lineNumberBorder": false,
36 "lineNumberTextAlign": "center"
37 },
38 "timestamp": "2025-09-20T04:16:13.665Z"
39}