shouvik sarkarshouvikjs.hashnode.dev·Feb 13, 2025String properties and methods in JSHey JavaScript developers! You’re probably familiar with strings, right? They might seem simple at first, but if not learned properly, they can cause confusion down the road. Understanding primitive strings is just the beginning—you also need to expl...11 likesChaiCode
Payal Porwalcodeswithpayal.hashnode.dev·Feb 12, 2025JavaScript Data Types: A Comprehensive Guide (With Examples)When learning JavaScript, one of the fundamental concepts to understand is data types. Data types define the kind of values a variable can hold. JavaScript is a dynamically typed language, meaning you don't need to specify a variable's type when decl...data types
khushaalankhushaalan.hashnode.dev·Feb 11, 2025Clear DigitsYou are given a string s. Your task is to remove all digits by doing this operation repeatedly: Delete the first digit and the closest non-digit character to its left. Return the resulting string after removing all digits. def clearDigits(self, s: ...string
Ayush Rajputrajputayush.hashnode.dev·Feb 7, 20258. Operators in JavascriptOperators Operators are the special symbols that is used to perform some operation on oprends in an exporession Airthmatic operator used for basic mathematical operations. Examples: + , - , , / , % , ** Assignment operators used to assign values...JavaScript
Tuanhdotnettuanhnet.hashnode.dev·Feb 1, 2025Escaping Strings in Java: How to Handle Special Characters EffectivelySource: Escaping Strings in Java: How to Handle Special Characters Effectively 1. What Does Escaping a String Mean in Java? Escaping a string refers to the process of prefixing certain characters with a backslash () so that they are inte...string
Robby Wublog.robby570.tw·Jan 31, 2025JavaScript - 我獨自升級 substr在加入了陳年專案維護中獲得了新知識。 前言 最近工作派發了一些 Legacy Code 專案翻修,難免會遇到一些 deprecated 的方法。 面對這些陳年代碼,最大的敵人往往都是疏忽了商業邏輯以及代碼可讀性。 本篇重點不在於介紹 substr, substring, slice ,想必大家都略懂這方法。 如果使用冷門特性,你一輩子都會記得寫註解對吧!? 這一篇的角度在於筆者對 Legacy Code 進行 String.substr() 重構的思路。 從「維護性」與「效能」的之間...38 readsJavaScriptJavaScript
The Syntax Nodejsmaraiya.sbs·Jan 28, 2025Common Mistakes Developers Make with JavaScript StringsJavaScript strings may seem straightforward, but they can quickly become tricky to handle. Overlooking small details can lead to performance issues, unexpected errors, or even security vulnerabilities. This guide highlights 8 common mistakes develope...JavaScriptJavaScript
Ajink Guptaunigeek.org·Jan 27, 2025Java Strings : Day 09 of Java SeriesHey there! Let’s dive into one of the coolest topics in Java—Strings! Think of strings as the workhorses of programming. Whether you’re greeting a user, processing data, or just playing around, you’ll need them. Let’s keep this fun, simple, and packe...Java Jumpstart Series 🌟Java
The Syntax Nodejsmaraiya.sbs·Jan 22, 2025Alternatives to JavaScript’s String.prototype.split() MethodIn JavaScript, the String.prototype.split() method works well for splitting strings, but when dealing with certain Unicode characters (like emoji or surrogate pairs), you may encounter issues if you don't handle them correctly. This happens because J...JavaScriptJavaScript
Tuanhdotnettuanhnet.hashnode.dev·Jan 13, 2025Secrets of Java's String PoolSource: Secrets of Java's String Pool 1. Introduction to Java's String Pool In Java, strings are a fundamental part of programming. The String Pool, also known as the String Intern Pool, is a special memory area where Java stores string litera...string