Recreating the String.length Property

Published by 2535m in

Create a function which returns the length of a string, WITHOUT using String.length property.

Examples

length("Hello World") ➞ 11

length("Edabit") ➞ 6

length("wash your hands!") ➞ 16

Notes

N/A

Watch a quick demo on how Edabit works.