Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write html and JavaScript to do the following AVASCRIPTARRAYS EXERCISE A URL in web is made of many components as shown in the picture below:

Write html and JavaScript to do the following image text in transcribed
AVASCRIPTARRAYS EXERCISE A URL in web is made of many components as shown in the picture below: File Name http://www.kfu.edu.sa/documents/arew.php Protocol Server Name Depth of the File Extension In this exercise, complete the javascript function called "decode url" below where the input url is provided in a variable called "url" (Note: the variable can be changed so do not put the values manually) The output of the funconsook like this (use routput Protocol: HTTP Server Name: www.kfu.edu.sa Depth of the File: 2 Name of the File: new Extension of the File: php Note: Depth of the file is the number of folders in the path after the server name and before the filename

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions