Good I have this function that I need to access the contents of the variable called permalink
using console.log()
but I can not get it
I jump that the variable permalink is not defined. But when I take away the! of! function
If I can access permalink
, I'm new to this, thank you in advance for your help and comments that may be useful to me.
This I need to do without editing the function since it is from an external source
This is my code.
!function(PriTwo, document) {
var DocumentProtocol =
document.location.protocol != 'https:' &&
document.location.protocol != 'http:'
? 'https:'
: document.location.protocol;
var permalink = DocumentProtocol + '//google.com';
var permalink_two = DocumentProtocol + '//facebook.com';
};
console.log(permalink);
I need that console.log
is out of the function, it can not be inside.
Any ideas?