![]() |
Syntax:url.resolve(from, to);
Return value:It returns the resolved URL by given parameters in from URL by to URL(type:string). Parsing of Target URL:1. Preceded by forward slash(“/”) – It will replace whole path after domain of base URL. Examples:
OUTPUT: http://www.google.com/one http://www.google.com/four http://www.google.com/one http://www.google.com/one/two/four Note:This code can run with node command in command prompt.(Eg. node file name) References: |
Reffered: https://www.geeksforgeeks.org
Node.js |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |