Hello everyone, I wanted to take a URL and change something in it then result it depending on a variable. example :
https://www.google.com/search?source=hp&ei=PjlAXML4AcGmafPTtqAO&q=test&btnK=Recherche+Google&oq=test&gs_l=psy-ab.3..0i131l4j0l2j0i131j0l2j0i131.332.929..1064...0.0..0.366.1249.2-1j3
I want to replace the word test by a variable.
I tried doing let test = AlbertEinstein
but it doesn’t work.
I’m the worst at coding, so can anyone help me please ?
What are you trying to accomplish? What do you want to happen by replacing “test” with “AlbertEinstein” in the URL?
You will need to do the substitution using Javascript. You will need to familiarize yourself with basic coding concepts to accomplish what you want. There are a wealth of Javascript coding sites which will help you learn Javascript from basic to advanced. We are happy to get you pointed in the right direction, but you’ll need to take it from there. As questions or difficulties arise, we are here to help.
I would suggest visiting the following sites for information on programming in Javascript:
https://support.wix.com/en/wix-code/wix-code-basics
https://www.w3schools.com/js/default.asp
https://javascript.info
Thank you for the websites !