Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Javascript
2022-02-07 02:40:08
javascript select letter in string
const str = 'Hello'; str.substring(0, 2); // => 'Hel'
Add solution
C#
2022-02-06 12:50:14
last two characters of string c#
string str = "Hello World"; string substr = str.Substring(str.Length - 1);
Add solution
Javascript
2022-02-03 13:46:54
js cookie
function setCookie(name,value,days) { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } ...
Add solution
Other
2022-02-03 06:57:08
str = str.substring(0, str.length - 1);
let str = "12345.00"; str = str.substring(0, str.length - 1); console.log(str);
Add solution
Other
2022-02-02 23:01:04
substring
var str = "Hello world That is reallly neat!"; var res = str.substring(0, 5);//get first 5 chars
Add solution
Javascript
2022-02-02 00:15:27
how to set input date to today date on initialization
date: new FormControl((new Date()).toISOString().substring(0, 10)),
Add solution
Javascript
2022-02-01 05:07:34
how to extract a single character from a string in javascript
var str = "Hello world!"; var res = str.substring(1, 4); //ell
Add solution
C#
2022-01-30 21:41:29
unity build see logs
using UnityEngine; public class ConsoleToGUI : MonoBehaviour { string myLog = "*begin log"; string filename = ""; bool doShow = true; int kChars = 700; void OnEnable() { Application.logMessageReceived += Log; } ...
Add solution
Javascript
2022-01-27 22:50:40
JavaScript chop/slice/trim off last character in string
let str = "12345.00"; str = str.substring(0, str.length - 1); console.log(str);
Add solution
C#
2022-01-27 20:37:43
divide string in chunks c#
static IEnumerable<string> ChunksUpto(string str, int maxChunkSize) { for (int i = 0; i < str.Length; i += maxChunkSize) yield return str.Substring(i, Math.Min(maxChunkSize, str.Length-i)); }
Add solution
‹
1
2
3
4
5
6
7
8
9
10
...
25
26
›
Best helpers
daily
weekly
monthly
for 3 months
Bud McGinty
+5
Hassaan
+5
Stephen F. Heffner
+5
Rwb
+5
Esse
+5
Trixie G.
+5
Laughsloudly
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.