Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

function

  1. XARZU

    Node.JS Discussion on Functions

    I thought I would start a helpful discussion of javascript Functions. Knowing Functions well I think would be helpful for understanding javascript. Specifically, Functions are Objets in javascript. This is a departure from typical coding where functions are methods of a class. Mozilla says...
  2. speedychapo

    JavaScript Javascript code works more than once

    Hello everyone, I will try to explain briefly but not sure I can do that or not. When I click on the edit button, a modal page appears on the screen. Inside this modal, there is is_index_sample_edit button. Clicking the X symbol(not refresh the page) in the upper right corner closes the edit...
  3. grepawk

    Please can u explain me this function

    please can someone explain what this function does? and is it possible to code it more efficiently? I don't understand especially if What I can see: it is loading only numbers from a text file and those numbers are being stored to a pointer on the array void...
  4. B

    JavaScript Exercise - find a passcode using dimensional arrays and function

    Hi! I´m stuck on this: Write a function named getValidPassword that takes a two dimensional array as parameter. Each entry in the first array represents a passcode. You need to find the passcode that has no odd digits and returns that passcode from your function. Here's an example: var...
  5. KISHOR 1988

    JavaScript function query

    const timeFuncRuntime = funcParameter => { let t1 = Date.now(); funcParameter(); let t2 = Date.now(); return t2 - t1; } const addOneToOne = () => 1 + 1; timeFuncRuntime(addOneToOne); Why is written line 3 " funcParameter(); " in block code of function???? Is line3 parameter...
  6. KISHOR 1988

    JavaScript function or parameter

    const timeFuncRuntime = funcParameter => { let t1 = Date.now(); funcParameter(); let t2 = Date.now(); return t2 - t1; } const addOneToOne = () => 1 + 1; timeFuncRuntime(addOneToOne); why is ritten line 3 " funcParameter(); " in block code of function?/ is line3 parameter ...
  7. KISHOR 1988

    JavaScript FUCTION

    function monitorCount(rows, columns) { return rows * columns; } function costOfMonitors() { return monitorCount(rows, columns) * 2000 } monitorCount(5, 7) console.log(costOfMonitors()); THOUGH I HAVE PASSED ARGUMENT FOR ROWS AND COLUMNS , WHY AM I NOT GETTING VALUE IN CONSOLE?
  8. P

    Python Noob Question

    Hi everyone, first post here. I'm pretty new to python and most other coding programs, but I'm in school for Computer programming currently. I'm working on a simple project, and I just want to add one simple detail, and I can't seem to get it. I will post my code after I give a brief...
  9. Ghost

    PHP How to Create a Basic PHP Class

    In this tutorial you will learn how to create a simple PHP class. Classes are used for many reasons, including but not limited to the following: Re-usability through the core system Organization Easier to manage long-term due to data (ex: user profile info) going through a defined class / set...
Back
Top Bottom