Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1032290 // hjs_makePageID - assign a random string to variable "pageID"

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3495L/19K).

sS hjs_makePageID() {
  ret hjs([[
    var pageID = Math.floor(Math.random()*1e12).toString();
    console.log("pageID: " + pageID);
  ]]);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032290
Snippet name: hjs_makePageID - assign a random string to variable "pageID"
Eternal ID of this version: #1032290/2
Text MD5: 706a443cbffdeeac641096cec16e7e98
Transpilation MD5: f65757628737c0494f3df86681df092c
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-26 17:10:19
Source code size: 146 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 251
Version history: 1 change(s)
Referenced in: [show references]