create a substring #coding #javascript

preview_player
Показать описание
#coding #javascript #tutorial #shorts #asmr

slice(): extracts a portion of a string and returns it as a new string without modifying the original string.

substring(): returns a part of a string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.

Please review the MDN docs on slice() and substring() for additional information.
Рекомендации по теме
Комментарии
Автор

slice(): extracts a portion of a string and returns it as a new string without modifying the original string.

substring(): returns a part of a string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.

theengineeringnotes
join shbcf.ru