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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:36:51+00:00 2026-05-26T00:36:51+00:00

Potentially dangerous code below, line 2 Repeat: POTENTIALLY DANGEROUS CODE BELOW var history =

  • 0

Potentially dangerous code below, line 2
Repeat: POTENTIALLY DANGEROUS CODE BELOW

var history = ""; 
for (start = 3; start = 1000; start += 1){
  if(start % 5 == 0 || start % 3 == 0) 
    history += start + " "; }

Okay, this is the tenth time I’ve put JavaScript code in that’s frozen my browser. It’s putting my computer in shock. Are these panic attacks going to destroy her heart? Where can I learn about all the crap that might break my computer as I continue to learn and practice JavaScript? I’m looking for an exhaustive list, only.

  • 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-26T00:36:52+00:00Added an answer on May 26, 2026 at 12:36 am

    Your loop: for (start = 3; start = 1000; start += 1){
    The second part of a for( ; ; ) loop is the condition test. The loop will continue until the second part evaluates to false. To not create an infinite loop, change your code to:

    for (var start = 3; start < 1000; start += 1){
    

    Note: start+=1 is equal to start++. If you want a compact code, you can replace +=1 by ++.

    An overview of the three-part for-loop, for(initialise; condition; increment):

    • initialise – Create variables (allowed to be empty)
    • condition – The loop will stop once this expression evaluates to false
    • increment – This expression is executed at the end of the loop
      Always check against infinite loops: Make sure that the condition is able to evaluate to false.

    Commonly made mistakes:

    • A negative incremental expression in conjunction with a is-lower-than comparison:
      i-- decreases the counter, so i<100 will always be true (unless the variable i is initialized at 100)
    • A positive incremental expression in conjunction with a is-higher-than comparison.
    • A non-incrementing expression: for(var i=0,j=0; i<100; j++) (i doesn’t increase)
    • A condition which is always true (such as in your case)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error in my asp.net page: A potentially dangerous Request.Form value
A potentially dangerous Request.Form value was detected from the client (Body=<b></b>). This error is
The codebase at work contains some code that looks roughly like this: #define DATA_LENGTH
today I receive multiple (50->*) e-mails regarding: A potentially dangerous Request.Form value was detected
I've heard that throwing exceptions in/from a C++ library could be potentially dangerous, particularly
This piece of code used to work in MVC 1 but it does not
I'm getting the Potentially dangerous Request.Form request value was detected from the client exception
Ruby's safe mode disallows the use of tainted data by potentially dangerous operations. It
I am trying to scrape a webpage when it throws a potentially dangerous script
I need to show some html code in TextBox. this is my TextBox description:

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.