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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:58:43+00:00 2026-06-12T13:58:43+00:00

I am a newbie in programming. I am trying to use JSZip to zip

  • 0

I am a newbie in programming. I am trying to use JSZip to zip some files from HTML5 filesystem, and I found the following difference between JSZip and other kinds of objects. Could anyone explain this to me?

<script src="jszip.js" type="text/javascript"></script>
<script>
function a(){
    var x=new JSZip();
    console.log(x) //Strange, it shows a JSZip object with folder abc
    b();

    function b(){
        x.folder("abc");
        console.log(x) //also shows a JSZip object with folder abc
    }
}
a();

function c(){
    var y=new Array();
    console.log(y) //shows []
    d();

    function d(){
        y[0]="abc";
        console.log(y); //shows ["abc"]
    }
}

c();
</script>
  • 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-12T13:58:44+00:00Added an answer on June 12, 2026 at 1:58 pm

    As Alex K. commented, this is a feature of the Webkit inspector.

    If you change your console.log lines to console.log(JSON.stringify(x));, the object will be evaluated at that point, showing that the object contains the properties that you expect.

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

Sidebar

Related Questions

I'm a complete newbie to Windows and COM programming, trying to use com4j in
I'm newbie in C++ programming. I'm trying to see the benefits from moving all
I'm a newbie to scala. I'm trying an example from the book Programming Scala.
I'm a newbie in iPhone Programming. I'm trying to send a message from one
I am a newbie to C programming and was trying to prepare some sorting
I am newbie for iOS programming. I'm trying to create an array of arrays
I'm a erlang newbie. When I read the Socket chapter from Programming Erlang and
I am a newbie to AS400-Java programming. I am trying to create my first
I'm completely newbie at authentication proccess with OAuth (I'm trying to make use of
I'm newbie to Game programming. I'm trying to develop a simple shooting game. The

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.