Avatar of dankyle67
dankyle67

asked on 

Code Snippet

How do I interpret the following code snippet?

function whatAmI()¿
{¿ 
   var p = window.location.protocol.substring(0,5);¿ 
   var o = window.location.hostname + window.location.pathname;¿ 
   var n = "https://" + o;¿ 
   if (p != "https") {¿   
      window.location = n;¿ 
   }¿
}
¿whatAmI ();
Web Languages and StandardsVB ScriptProgramming

Avatar of undefined
Last Comment
mccarl
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Programming
Programming

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.

55K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo