Menu
Coddy logo textTech

Substring Extractor

Lesson 18 of 24 in Coddy's Golang Challenges - Level 1 course.

challenge icon

Challenge

Easy

We have a string like this: "abshvjngsh"

Write a function that takes a string, a start index, and an end index as parameters and returns a new string based on the given positions.

For example, if the start index is 2 and the end index is 7, the result will be "shvjng".

Try it yourself

func extractSubstring()  {


}

All lessons in Golang Challenges - Level 1