Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Z

    Node.JS Can't get any output from the code

    Hi, I am running the following node.js code: var http = require('http'); http.createServer(function (req, res){ res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World!'); }).listen(8080); I found the code from: https://www.w3schools.com/nodejs/ I am executing using...
  2. Z

    Hi to all:

    Thanks for providing this service.
  3. Z

    JavaScript Problem with insertion and splitting

    Hi, I have a string: "address payable dest , uint amount". I want to split it such that: arr[0][0] = address payable arr[0][1] = dest arr[1][0] = uint arr[1][1] = amount I have written the following code: const path = require("path"); const fs = require("fs"); module.exports = async...
  4. Z

    JavaScript How to get rid of null character:splitting 2d array

    How to get rid of null character:splitting argument into 2d array Hi, I have got following code: module.exports = async function(callback) { try{ //https://stackoverflow.com/questions/8594097/javascript-split-string-into-2d-array let allArgStr= "address to, uint amount"...
  5. Z

    JavaScript How to split arguments using the loop?

    Hi, I want to separate arguments and their types as given in the following string: "(address to, uint amount)" The number of arguments are not restricted to 2. Thus I need a loop. For the above, I am doing without a loop using...
  6. Z

    JavaScript If condition not working

    Hi, I am trying to check the if -condition, but it does not work if the condition is false. Following is my code: Hi, I am using isNaN(arg) in a if condition but if the arg is a null value, control enters into if condition. How can I avoid it: My code is: I just want to print "new numeric...
  7. Z

    JavaScript Transferring from 1 dimensional array to 2dimensional array ?

    Hi, I have a problem in this line: keyWordStr[,[ctr]] = files;//Added File name is of 6 characters, how this transfer is taking place without a loop? var assert = require('assert'); const path = require("path"); const fs = require("fs"); module.exports = async function(callback) {...
Back
Top Bottom