About 50 results
Open links in new tab
  1. console.log and return - Codecademy

    Hey luckynika, There is actually a very clear distinction between these calls. console.log() is a function used to print information to the console. return on the other hand is a call to pass some value back …

  2. Running JavaScript in the Browser Console | Codecademy

    Along with HTML and CSS, JavaScript (JS) makes up one of the core languages in web development. JS code is normally added using the HTML <script> element for executing in web browsers, but most …

  3. Why/ when would you use console.log? - Codecademy

    Because console.log is not part of JavaScript you can’t use it outside of a console on a regular HTML page. For that you will have to replace it with alert (), document.write (), innerHTML, confirm () and …

  4. Spacing in console.log - Codecademy

    Spacing in console.log I noticed that there were two different ways that spacing was handled in the exercises - I’ve been working through the JavaScript track and am currently on Introduction to ‘For’ …

  5. printing in a single line - Codecademy

    If you mean multiple console.log () outputs to a single line, we can’t. It always starts on a new line. The only way is to combine everything into a single string, then log it all in one console.log () statement. …

  6. console.log() not working in my browser. | Codecademy

    I wrote an HTML program with a Javascript code, with `console.log()` functions for printing, and ran it in the browsers(IE, Chrome) but found that not...

  7. JavaScript | Strings | .concat () | Codecademy

    Jun 28, 2023 · Concatenates or combines strings together. Codebyte Example The following is runnable, and demonstrates the use of the .concat() method:

  8. What's the difference between print () and console.log ... - Codecademy

    console.log () outputs your message to the standard output: the console. print () is a short form of window.print () that sends the page you are viewing to a printer. They perform completely different …

  9. What is the difference between document.write and console.log?

    console.log is not really part of the JavaScript standard. It is an addition to JavaScript when JavaScript is used on a browser, specifically on a JavaScript console.

  10. WHY ISN'T THE CONSOLE.LOG COMMAND WORKING? - Codecademy

    I was making a JavaScript program in notepad, and i used the console.log command to print something but nothing was printing. The prompt command and other basic commands are working except this …