Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Javascript
2022-02-09 23:40:20
remove character at index from string javascript
// removing char at index 3 var str = "Hello World"; str = str.slice(0, 3) + str.slice(4); console.log(str) // Helo World
Add solution
Java
2021-11-20 17:35:11
java stringbuilder setcharat
StringBuilder str = new StringBuilder("ABCD"); // set char at index 2 to 'L' str.setCharAt(2, 'L');
Add solution
Python
2021-09-07 12:51:01
python last letter of string
sample_str = 'Sample String' # Get last character of string i.e. char at index position -1 last_char = sample_str[-1] print('Last character : ', last_char) # Output Last charater : g
Add solution
Best helpers
daily
weekly
monthly
for 3 months
HoratioCain
+5
Luke Stoddard
+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.