Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:27:11+00:00 2026-06-13T12:27:11+00:00

I’m new in Dart language but I still working on ! I got this

  • 0

I’m new in Dart language but I still working on ! I got this problem, I want to calculate the table of multiplication of : 14.

So basicly, i want to get this results:
14,28,42,56,70,84,98,112,126, etc etc to 1400

My function work, when I print my result. But I can’t paste the results in a div.

There is my .dart :

main() {    
  var numero2 = 14;
  var multiplication = 0;
  var element02 = query('#exercice02');   
  for (var i = 1; i < 101; i++) {
    multiplication = numero2 * i;
    print(multiplication); 
  }
  //element02.text = multiplication;

}

And in my html i got :

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title>HelloWorld</title>
    <link rel="stylesheet" href="HelloWorld.css">
  </head>
  <body>
    <div id="container">
      <p class="question">Exercice 02 : 100 x 14 : <span id="exercice02"></span></p>
    </div>

    <script type="application/dart" src="web/HelloWorld.dart"></script>
    <script src="https://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script>
  </body>
</html>

Actually, I dont know how to concatane the results, I try as you can see the : element02.text = multiplication; in FOR, but it destroy it, and then I try the += and they are multiplicating together and I only have 1 result at the end.

Some one can help me ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:27:12+00:00Added an answer on June 13, 2026 at 12:27 pm

    How do you want the results to be displayed? Like: 14, 28, 42?

    test.dart

    import 'dart:html';
    
    void main() {
      var results = [];
      for (var i = 14; i <= 1400; i += 14) {
        results.add(i.toString());
      }
    
      var element = query('#container');
      element.text = Strings.join(results, ', ');
    }
    

    test.html

    <!DOCTYPE html>
    <html>
      <body>
        <div id="container"></div>
    
        <script type="application/dart" src="test.dart"></script>
        <script src="https://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script>
      </body>
    </html>
    

    Output:

    14, 28, 42, 56, 70, 84, 98, 112, 126, 140, 154, 168, 182, 196, 210,
    224, 238, 252, 266, 280, 294, 308, 322, 336, 350, 364, 378, 392, 406,
    420, 434, 448, 462, 476, 490, 504, 518, 532, 546, 560, 574, 588, 602,
    616, 630, 644, 658, 672, 686, 700, 714, 728, 742, 756, 770, 784, 798,
    812, 826, 840, 854, 868, 882, 896, 910, 924, 938, 952, 966, 980, 994,
    1008, 1022, 1036, 1050, 1064, 1078, 1092, 1106, 1120, 1134, 1148,
    1162, 1176, 1190, 1204, 1218, 1232, 1246, 1260, 1274, 1288, 1302,
    1316, 1330, 1344, 1358, 1372, 1386, 1400

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I want to construct a data frame in an Rcpp function, but when I
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.