Welcome!

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. KISHOR 1988

    JavaScript .every method with function

    const inventory = { sunglasses: 1900, pants: 1088, bags: 1344 }; debugger; const order = [['sunglasses', 1], ['bags', 500]]; const checkInventory = (order) => { return new Promise((resolve, reject) => { setTimeout(() => { let inStock = order.every(item => inventory[item[0]] >=...
  2. KISHOR 1988

    JavaScript i am feeling hard to understand logic of this code

    const inventory = { sunglasses: 0, pants: 1088, bags: 1344 }; const order = [['sunglasses', 1], ['bags', 2]]; let inStock = order.every(item => inventory[item[0]] >= item[1]); i am beginner so please explain line number 7 that contains ---- item => inventory[item[0]] >= item[1]------what...
  3. 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...
  4. KISHOR 1988

    JavaScript function or parameter

    ritten = *written return = *written
  5. 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 ...
  6. KISHOR 1988

    JavaScript FUCTION

    I have passed arguments in monitorCount(5, 7) , is this not right?
  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 arguments for rows and columns , why am i not getting data in console??
  8. 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?
Back
Top Bottom