Welcome!

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

    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...
  2. 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...
  3. 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"...
  4. 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...
  5. Z

    JavaScript If condition not working

    @cbreemer Hi, Thanks a lot for your help. God blesses you. Zulfi.
  6. 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 =...
  7. 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...
  8. 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