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!

function

  1. R

    JavaScript ENTER key to execute function

    I wish to enter input and hit ENTER key to execute a function that provides data back. Not doing anything else with the mouse or keyboard. I have been trying this which does give me my data back, but I need to use the mouse and keyboard to get my data. Try to enter "John 3:16-20" to test for the...
  2. jkumar85

    JavaScript Help with date difference calculation

    Need help to produce data in PHP with help of functions Like this Ex.-1 Start Date : 12-04-2023 End Date : 30-06-2023 Output: 12-04-2023 to 30-04-2023 = 19 Days May-2023 June-2023 Ex.-2 Start Date : 01-04-2023 End Date : 30-06-2023 Output: April-2023 May-2023 June-2023 Ex.-3 Start Date ...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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 ...
  9. 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?
  10. 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...
  11. 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