• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. Elijah97
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Elijah97

    @Elijah97

    0
    Reputation
    9
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Elijah97 Unfollow Follow

    Latest posts made by Elijah97

    • New to Js I need Help.

      I have this issue with my code. When I use return it displays 1 value, but when I change it to console. It displays all values.
      Here are the codes.

      function divisors(integer) {
        var i;
        let array = [];
        for( i = 2; i < integer; i++){
          if(integer % i === 0) 
            return i
          //console.log(i) gives all values
            ;
        }
        return integer + " is prime";
      };
      console.log(divisors(15))
      

      Any help?

      posted in General Discussion
      Elijah97
      Elijah97

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact