JavaScript

The Semicolon: Settings in Visual Studio Code

Visual Studio Code (VS Code) is a versatile code editor, popular for its flexibility and wide range of features. One small yet crucial element that many developers interact with daily is the semicolon (;). Understanding how to handle semicolons can streamline your coding experience, especially in languages like JavaScript or TypeScript, where semicolons play a […]

, , , , , , , , , ,

The Semicolon: Settings in Visual Studio Code Read Post »

JavaScript

Drawing a Fir Tree in JavaScript & Understanding String Escaping

JavaScript strings can sometimes be tricky, especially when it comes to backslashes (\). Let’s explore how this affects drawing a simple tree and learn about string escaping. The Problematic Code console.log(‘ /’); console.log(‘ / ‘); console.log(‘ / ‘); console.log(‘ / ‘); console.log(‘ ——‘); console.log(‘ ||’); At first glance, this code might look correct. However, if

, , , , , , , , , , , , , , , , , , ,

Drawing a Fir Tree in JavaScript & Understanding String Escaping Read Post »

Scroll to Top