About 80,900,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 …

  2. Variable name as a string in Javascript - Stack Overflow

    Is there a way to get a variable name as a string in Javascript? (like NSStringFromSelector in Cocoa) I would like to do like this: var myFirstName = 'John'; …

  3. Print / display a JavaScript variable's name instead of it's value

    May 6, 2011 · Is it possible to print / display a JavaScript variable's name? For example: var foo=5; var bar=6; var foobar=foo+bar; document.write(foo+ "<br>"); document.write(bar+ …

  4. 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 …

  5. How can I get the player name by script? - Scripting Support ...

    Jun 1, 2022 · If you’re using a local script, the Players service has a property called LocalPlayer that gives the player instance on that client, so all you would need to do to get the player’s …

  6. JavaScript Output - W3Schools

    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 …

  7. JavaScript Soccer Game - CodePal

    Learn how to create a soccer game using JavaScript. This tutorial will guide you through the process of creating a SoccerGame class that represents a soccer game. You will learn how to …

  8. Printing game name with game id - Scripting Support - Roblox

    Apr 19, 2024 · local gameInfo=game:GetService("MarketplaceService"):GetProductInfo(gameID) local gameName=(gameInfo["Name"]) print(gameName) You may also call a asset with a …

  9. How to Print a String in JavaScript - GeeksforGeeks

    Jun 5, 2024 · We can use either the document.write () method or the innerHTML property to print the string on web page. Example: The below code uses document.write () to print string on …

  10. How to print in JavaScript - with code examples | sebhastian

    Apr 25, 2022 · Depending on what you want to print and where you run JavaScript code, there are several ways to print in JavaScript. When you want to print the current webpage of your …

Refresh