Recreating a .length Function

Published by bangyen in

Create a function which returns the length of a string, without using .length.

Examples

length("Hello World") ➞ 11

length("Edabit") ➞ 6

length("wash your hands!") ➞ 16

Notes

N/A

Watch a quick demo on how Edabit works.