About 25,200,000 results
Open links in new tab
  1. JavaScript Program to Print Your Own Name - GeeksforGeeks

    Jan 17, 2025 · We can print a user's name in JavaScript using methods like alert(), console.log(), document.write(), document.getElementById(). Each method serves a specific purpose depending on the output scenario.

  2. javaScript, function, priting my name (beginner) - Stack Overflow

    Jan 11, 2015 · Call nameString() by passing it your name, and use console.log to print the output. I wrote: var nameString = function (name) {return "Hi, I am" + " " + name;}; nameString (Myrrh); console.log (name);

  3. javascript - How do I print my name 5 times? - Stack Overflow

    Dec 28, 2014 · I can use the following code to print form 1 to 5 but how do I use it to print my name 5 times? for (var counter = 1; counter <= 5; counter = counter + 1) { console.log(counter); } javascript

  4. JavaScript Output - W3Schools

    JavaScript Print. JavaScript does not have any print object or print methods. You cannot access output devices from JavaScript. The only exception is that you can call the window.print() method in the browser to print the content of the current window.

    Missing:

    • Name

    Must include:

  5. Write a javascript program to print your name - Brainly.in

    Sep 8, 2019 · document.write ("Your name is: "+prompt ("Enter your name: ")) //print the name after taking the input. Code Explanation : The above-defined one line code is written in Javascript language which holds the two function input and print function.

  6. Print Name Forever - JavaScript Code - CodePal

    Learn how to create a JavaScript function that prints your name to the screen forever.

  7. Print a name with Javascript - chipingo42.github.io

    Write a javascript code that prints out your name, height, and country on the screen

  8. Javascript print/output - The Poor Coder

    Mar 24, 2023 · To use console.log (), you simply write: console.log("Hello, World!"); This will print "Hello, World!" to the console. Note that you can also pass variables to the console.log () method, like: This will print "My name is Raju" to the console. The document.write () method is another way to output data in Javascript.

  9. javascript - Using Alerts to Show My Name - Stack Overflow

    var name = document.getElementById('name').value; alert("Hello from " + name"); Here is a minimalistic example of including javascript into your html. <title></title> <input type="button" …

  10. Generating and Printing Output in JavaScript - Tutorial Republic

    In JavaScript there are several different ways of generating output including writing output to the browser window or browser console, displaying output in dialog boxes, writing output into an HTML element, etc. We'll take a closer look at each of these in the following sections.

    Missing:

    • Name

    Must include:

  11. Some results have been removed
Refresh