3 réponses
Hello,
This question depends on the browser...
When you open the JavaScript console of your browser (usually shortcut F12), you "paste" in the console.
The first time, the browser asks you to rewrite a phrase to "allow" this paste.
.... well, just read the message that appears when you try to paste.
If your issues persist, feel free to send us screenshots and explain in detail what you have tried to do.
.
Best regards,
Jordane
Hello,
the console of what? which tutorial?
I don’t quite see commands lines in JS... or are you just talking about the script? JavaScript is a scripting language, meaning it’s text that is interpreted (as opposed to a compiled language, for example).
JavaScript is usually used with an HTML file; are you sure you understand this well?
Looking at a tutorial is useless; you need to understand it first—if it’s even valid—avoid video tutorials and opt for text that will make you think, then move on to practice.
Knowing how to find answers to your questions will be essential for learning and practicing a programming language = writing a search query in a search engine that leads you to the right answer. Memorizing has no interest; once you understand and assimilate the principles, you need to search and find for yourself, have you tried?
You could have found, for example (search on Google: integrate JavaScript)
https://developer.mozilla.org/fr/docs/Learn/HTML/Howto/Use_JavaScript_within_a_webpage
And of course, especially at the beginning, don’t limit yourself to just one course or tutorial; multiply sources on the basics, especially if you get stuck. Going through another course or angle of approach will easily unblock you.
@toai or Jordane:
Hi,
It's 3 lines of code to be executed in the console in order to extract data from a site (YouTube).
Snippet found here: https://responsive-muse.com/export-youtube-playlist-video-urls-titles-js/
@Whismerhil and @Jordane: I couldn't figure out how to do it on Chrome... I saw that you need to go to Settings > Experiments > and type "Paste something", but I can't find that Paste anywhere.
However, I was able to do it easily in the Firefox console... which asked me to type "Allow pasting".
In Chrome, "Allow pasting" is not prompted for me. I don't see how to do it... Well, it's not a big deal, it was just for 3 lines...
Thanks