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!

Recent content by zak100

  1. Z

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

    Hi @Johana, I want to first run on terminal. Please guide me. Zulfi.
  2. Z

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

    @JosiahMaybe , can you please write what you are saying. I cant understand. I have also attached the image of original code.
  3. 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...
  4. Z

    Hi to all:

    Thanks for providing this service.
  5. Z

    JavaScript Problem with insertion and splitting

    Implement the code for dealing with arguments having address payable value of str =address payable dest , uint amount argStrWithCommaBrok[0]=address payable dest argStrWithCommaBrok[1] uint amount index = 0 len of address payable is14 ptOfInsMarkChar 15 1argStrWithCommaBrok[0]address payable...
  6. 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...
  7. 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"...
  8. 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...
  9. Z

    JavaScript If condition not working

    @cbreemer Hi, Thanks a lot for your help. God blesses you. Zulfi.
  10. Z

    JavaScript If condition not working

    Hi @cbreemer I have removed the null condition, but I am still getting the same output. Maybe it was a typo that you saw : word=words My code is below: const path = require("path"); const fs = require("fs"); module.exports = async function(callback) { try { let keywordStr = '11 =...
  11. 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...
  12. 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