Robby Wublog.robby570.tw·Jan 31, 2025JavaScript - 我獨自升級 substr在加入了陳年專案維護中獲得了新知識。 前言 最近工作派發了一些 Legacy Code 專案翻修,難免會遇到一些 deprecated 的方法。 面對這些陳年代碼,最大的敵人往往都是疏忽了商業邏輯以及代碼可讀性。 本篇重點不在於介紹 substr, substring, slice ,想必大家都略懂這方法。 如果使用冷門特性,你一輩子都會記得寫註解對吧!? 這一篇的角度在於筆者對 Legacy Code 進行 String.substr() 重構的思路。 從「維護性」與「效能」的之間...37 readsJavaScriptJavaScript
Anmol singhjava-script-part-3.hashnode.dev·Jan 30, 2025( String Methods ) : Using toUpperCase, toLowerCase, concat() , trim(), split(separator) , replace(searchValue, newValue) , and MoreUnderstanding String Methods in JavaScript Strings are one of the most fundamental data types in JavaScript, and they come with a variety of built-in methods that allow developers to manipulate and work with text efficiently. In this blog, we will ex...Mastering JavaScript String Methods
VaithegiVvaithegiv.hashnode.dev·Jun 21, 2024<Simple Calculator using HTML/CSS><form> element is a container that contains different type of input elements. in this project: I used <input> and <button> as a input elements inside the <form> The elements that doesn't need closing tag is called Empty or Void elements. <input type=...2 likesLearn Frontend with projectslivelink
Sagar Mohantykeyboard-gorilla.hashnode.dev·May 28, 2024Arrays and Slices in Go: Basic Operations and CapabilitiesIn the Go programming language, arrays and slices are fundamental data structures that offer unique ways to handle collections of data. This blog will walk you through basic operations such as insertion and deletion, as well as slicing and managing c...DSA with Godsa-with-go
Faeka Ansarifyka.hashnode.dev·Apr 6, 2024Slice Secrets in GoLangSlices are one of the most versatile and powerful data structures in Go, offering flexibility and efficiency in managing collections of data, and extremely used in literally every Go Program I have came across. However, there's more to slices than me...1 like·60 readsgolang
Jemin Kikanijemin.hashnode.dev·Feb 28, 2024Day 5 : how many String Methods in javascript with example ?● String length ● String slice() ● String substring() ● String substr() ● String replace() ● String replaceAll() ● String toUpperCase() ● String toLowerCase() ● String concat() String Length:- ● String trim() ● String trimStart() ● String tr...padEnd()
Shounak Khulapeshounakkhulape.hashnode.dev·Feb 21, 2024Go - SlicesA slice is defined as a continuous segment of an underlying array and it provides access to a numbered sequence of elements from that array. Slices provide access to parts of an array in sequential order. Slices are more flexible and more powerful ...Go Language basicGolang developer
Lucie Yarishlucieyarish.hashnode.dev·Feb 3, 2024JavaScript slice() MethodThe slice() method is often confused with splice(), and vice versa. In this article, we are going to take a closer look at the JavaScript slice() method with code examples. In the upcoming articles in this series, I am going to dive into splice(), to...4 likes·92 readsJavaScriptJavaScript
WP LarryDwpding.hashnode.dev·Sep 17, 2023Get Going: peek into sliceIn previous posts, I explored the unique design of Go error handling. This time I am moving to another part: Go slice. Similar to error handling, this data structure (essentially dynamic array) is something so common (JavaScript array, Python list et...golang
Bidhubhushan Gahanbidhubhushan.hashnode.dev·Sep 7, 2023Javascript Array.Splice vs Array.sliceArray.slice() slice() is a method of javascript array datatype that helps to get a subarray from an array. It doesn't change the original array. Syntax const arr = [1,2,3,4,5,6] const slicedArr = arr.slice(1,4) //Here the first parameter represents t...38 readsslice