JS Built-ins
π
en
|
es
Apprentice
0 XP
β
Search
βK
Exam β
Stats β
Learning Path
β
β°
β Home
URL
0 / 20 completed (0%)
All Difficulties
Beginner
Intermediate
Advanced
All
Not Started
Attempted
Completed
Exercises (20)
β
URL Constructor β basic absolute URL
Beginner
β
URL Constructor β relative URL with base
Beginner
β
URL Constructor β invalid URL throws TypeError
Intermediate
β
URL Constructor β full URL parsing
Intermediate
β
URL Constructor β round-trip
Intermediate
β
URL Properties β href and protocol
Beginner
β
URL Properties β hostname, port, host
Beginner
β
URL Properties β pathname and search
Beginner
β
URL Properties β hash and origin
Beginner
β
URL Properties β searchParams live round-trip
Advanced
β
URL#toString() β equals href
Beginner
β
URL#toString() β reflects property changes
Intermediate
β
URL#toJSON() β returns a string
Beginner
β
URL#toJSON() β equals href
Beginner
β
URL#toJSON() β used by JSON.stringify()
Advanced
β
URL.canParse() β valid absolute URL returns true
Beginner
β
URL.canParse() β invalid URL returns false
Beginner
β
URL.canParse() β relative URL with base
Beginner
β
URL.canParse() β empty string returns false
Beginner
β
URL.canParse() β is a static function
Beginner