Wednesday, October 14, 2026
Latest:
  • Präsentation für b1
  • Verb “werden” Konjugation
  • In German, verb sein (to be) Konjunktion
  • Wichtige wörter für B1 prüfung
  • What are the main differences between ApplicationContext and BeanFactory?
Upokary

Upokary

Quality information

  • Health
  • Life
  • Fashion
  • Food
  • Code
  • English
  • বাংলা
Technology 

Find if the sum of two integers is equal to the given value

Published: February 10, 2022
   const verifySum = (arr, total) => {
       for(let i = 0; i < arr.length ; i++ ){
           for(let j = 0 ; j < arr.length; j++) {
               if (i === j) {
                   continue;
               }

               if(total === arr[i] + arr[j]) {
                   return true;
               }
           }
       }
       return false;
   }

   const input = [5, 7, 1, 2, 8, 4, 3];
   console.log(verifySum(input, 15));

You May Also Like

Objects are not valid as a React child found: object with keys

May 26, 2020 beroza

Find the correct word by incrementing chart code of letters

February 11, 2022 beroza

Job for apache2.service failed. See “systemctl status apache2.service” and “journalctl -xe” for details.

May 24, 2020 beroza

rest_cannot_create Sorry, you are not allowed to create posts as this user in WordPress REST API

July 2, 2019 beroza

How to render and return html using render_to_string in rails?

May 27, 2020 beroza

JavaScript “let” and “var” related interview questions

March 19, 2019 beroza

Write a JavaScript curry function to add n numbers

April 23, 2022 beroza

Count the Number of Vowel Strings in Range

May 28, 2023 beroza

What is machine learning? What are different types of machine leanring methods?

July 12, 2020 beroza

Why Upokary?

Upokary.com is a useful application in everyday life. It provides very handy information regarding every aspect of life. Each and every tip of upokary.com is meant to make life better.

Upokary tools

  • Youtube thumbnail
  • Youtube video downloader

Useful Links

  • Handy code
  • Technology
  • People
  • Programming
  • Quote
  • Travel
  • WordPress
  • IELTS
  • Kids

Pages

  • Sitemap
  • Privacy policy
  • About us
  • Contact us

Support

For any kind of query or question please drop a message in the following email: upokary@gmail.com
Copyright © 2026 Upokary. All rights reserved.