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 6797105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:34:04+00:00 2026-05-26T18:34:04+00:00

This is what it says: You can use an incrementer to make a number

  • 0

This is what it says:

You can use an incrementer to make a number increase by one or a
decrementer to make it decrease by one. To increase the number, you
can use ++ after a variable.

Let’s make the variable i, in the editor, equal to 2 by incrementing
it twice. This should involve two separate lines with i++; on them.
Try it out now.

Here you can have two separate lines of iteration. Each should contain
just i++.

I have to modify this code:

var i = 0;
print( "i is equal to " + i );

I’m not sure if I’m too dumb, but I don’t know how to complete this tutorial.

  • 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-05-26T18:34:05+00:00Added an answer on May 26, 2026 at 6:34 pm

    The answer is trivially:

    var i = 0;
    i++;
    i++;
    print( "i is equal to " + i );
    

    Advanced details follow:

    For what it’s worth, my preference would be to use the pre-incrementing ++i operator rather than post-incrementing i++.

    The reason for this is that strictly speaking the latter evaluates to the original value of i as it was before it was incremented, i.e as if it was a function that does this:

    var tmp = i;
    ++i;
    return tmp;
    

    This doesn’t really matter in Javascript, but if you progress to more advanced languages such as C++ it matters, because taking that additional copy of the object can be expensive.

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

Sidebar

Related Questions

So in my documentation it says: public event TreeViewPlusNodeCheckedEventHandler NodeChecked() You can use this
This article says: Every prime number can be expressed as 30k±1 , 30k±7 ,
The documentation says you can use $.noConflict() like this: jQuery.noConflict(); (function($) { $(function() {
I'm trying to do this but it says I can't use FirstOrDefault, public static
In this video from Google I/O 2011, Google says you can use the Android
This side says that it can support https through the code provided. However, the
The answer to this SO question says that you can create an api by
As the title says, can I do this with a POSIX file descriptor? In
Google Terms says I can only use reverse geocoding in conjunction with a google
It says you can use the highlight-indent-face but I'm not sure how to set

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.