今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
URLify
(rhythmic gaming music) - Strings are one of the core data types in JavaScript so understanding how to manipulate them is a vital skill for all front end developers. The string data type comes with many utility functions which we can use to find and replace characters. Let's create a function that takes in a blog post title and returns the urlified version. To create a URL friendly version of a blog post title, all punctuation must be removed. All letters must be lowercase and all spaces must be joined by hyphens. You should use a combination of regular expressions and string prototype functions to complete this challenge. Pause the video here, develop your solution, and when you're ready, come back and I'll walk you through how I solve the challenge. (rhythmic gaming music) Let's declare a function called urlify. This function will take one argument, a blog post title. The first thing we'll do is remove the…
内容
-
-
-
Available books6 分钟 11 秒
-
(已锁定)
Movie object5 分钟 29 秒
-
(已锁定)
Vegetarian dinner3 分钟 11 秒
-
(已锁定)
Technical books2 分钟 33 秒
-
(已锁定)
Private object2 分钟 13 秒
-
(已锁定)
Ticking time2 分钟 17 秒
-
(已锁定)
Classroom attendance3 分钟 14 秒
-
(已锁定)
Dynamic colors4 分钟 15 秒
-
(已锁定)
Coffee calculations3 分钟 21 秒
-
(已锁定)
Food truck3 分钟 4 秒
-
(已锁定)
Train generator3 分钟 31 秒
-
(已锁定)
String permutation3 分钟 11 秒
-
(已锁定)
Five friends3 分钟 43 秒
-
(已锁定)
URLify3 分钟 55 秒
-
(已锁定)
Password strength4 分钟 58 秒
-