From a3135527211a80acf88bfd4da74d021a27eb45e8 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 15 Aug 2025 22:25:01 +0100 Subject: [PATCH] Fix broken syntax files --- src/data/question-groups/full-stack/content/code-splitting.md | 3 ++- src/data/question-groups/golang/content/string-literals.md | 4 ++-- .../javascript/content/css-selectors-javascript.md | 3 ++- src/data/question-groups/javascript/content/iife.md | 3 ++- .../question-groups/javascript/content/imports-exports.md | 3 ++- src/data/question-groups/javascript/content/strict-mode.md | 3 ++- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/data/question-groups/full-stack/content/code-splitting.md b/src/data/question-groups/full-stack/content/code-splitting.md index 14a4271e2..428d67cda 100644 --- a/src/data/question-groups/full-stack/content/code-splitting.md +++ b/src/data/question-groups/full-stack/content/code-splitting.md @@ -14,4 +14,5 @@ function App() { ); -} \ No newline at end of file +} +``` \ No newline at end of file diff --git a/src/data/question-groups/golang/content/string-literals.md b/src/data/question-groups/golang/content/string-literals.md index ac3745da2..22e1a89af 100644 --- a/src/data/question-groups/golang/content/string-literals.md +++ b/src/data/question-groups/golang/content/string-literals.md @@ -1,4 +1,4 @@ -Raw string literals in Go are enclosed in backticks (`` ` ``) and preserve all formatting exactly as written. This is different from interpreted string literals, which process escape sequences like \n. This distinction is particularly useful when you need to process data exactly as it is written. +Raw string literals in Go are enclosed in backticks (\`) and preserve all formatting exactly as written. This is different from interpreted string literals, which process escape sequences like \n. This distinction is particularly useful when you need to process data exactly as it is written. Consider a scenario where you need to embed an HTML template directly into your Go code. With raw string literals, you can include the HTML exactly as written without worrying about escaping characters or preserving the formatting. For example: @@ -11,7 +11,7 @@ htmlTemplate := `

Hello, World!

-` +` // backtick here ends the raw string literal ``` In this case, the raw string literal enclosed in backticks preserves newlines, tabs, and any other whitespace exactly as you write them. \ No newline at end of file diff --git a/src/data/question-groups/javascript/content/css-selectors-javascript.md b/src/data/question-groups/javascript/content/css-selectors-javascript.md index 67974e87f..fff16638d 100644 --- a/src/data/question-groups/javascript/content/css-selectors-javascript.md +++ b/src/data/question-groups/javascript/content/css-selectors-javascript.md @@ -19,4 +19,5 @@ const styleP = document.getElementById("styleP"); styleP.style.color = "red"; styleP.style.border = "3px solid black"; -console.log(styleP.style); \ No newline at end of file +console.log(styleP.style); +``` \ No newline at end of file diff --git a/src/data/question-groups/javascript/content/iife.md b/src/data/question-groups/javascript/content/iife.md index a9437765c..e3445cb91 100644 --- a/src/data/question-groups/javascript/content/iife.md +++ b/src/data/question-groups/javascript/content/iife.md @@ -13,4 +13,5 @@ Immediately invoked function expressions, or IIFEs, run as soon as they're creat console.log( "roadmap.sh helps prepare for JavaScript job interview questions" ); -})(); \ No newline at end of file +})(); +``` \ No newline at end of file diff --git a/src/data/question-groups/javascript/content/imports-exports.md b/src/data/question-groups/javascript/content/imports-exports.md index 79fb225d6..66e267a71 100644 --- a/src/data/question-groups/javascript/content/imports-exports.md +++ b/src/data/question-groups/javascript/content/imports-exports.md @@ -24,4 +24,5 @@ export function studyJs(course) { import { studyJs } from './app.js'; -console.log(studyJs("roadmap.sh")); // Read the JavaScript guide on, roadmap.sh \ No newline at end of file +console.log(studyJs("roadmap.sh")); // Read the JavaScript guide on, roadmap.sh +``` \ No newline at end of file diff --git a/src/data/question-groups/javascript/content/strict-mode.md b/src/data/question-groups/javascript/content/strict-mode.md index 0ae775ad7..22808ba1c 100644 --- a/src/data/question-groups/javascript/content/strict-mode.md +++ b/src/data/question-groups/javascript/content/strict-mode.md @@ -30,4 +30,5 @@ console.log(courseNumber ); // code won't run } -strictExample(); // ReferenceError \ No newline at end of file +strictExample(); // ReferenceError +``` \ No newline at end of file