• dherran 9 years ago + 1 comment

    If the point was to learn objects why are we only being asked to console.log() something that is already set? You first say you are giving a single line that had to be put in an object. I though I had to split the string and save each column into the object. Instructions are not clear at all.

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • PRASHANTB1984 9 years ago + 4 comments

      See this isn't a usual challenge - it is also a tutorial. So, we handled the part where the string is split. Reading code is also a part of the learning. For someone completely new to programming this is quite essential.

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • jeancochrane 9 years ago + 1 comment

        You're definitely right that learning to read through code is essential, Prashant. At the same time, a hint telling us to read the code would have helped keep the focus on the lesson, rather than on aimless debugging – I agree with Paul's comment below, in that the previous challenges had trained us to ignore the code beneath our active functions. It was a little bit confusing, although not the end of the world. Anyway, thanks for helping me solve this one!

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • ibsavage 9 years ago + 0 comments

          IMHO, it would have been a better introduction of objects if the instructions were to print out myObject's properties individually.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

        • Neurovibes 9 years ago + 0 comments

          Nowhere in the tutorial does it indicate the idea of creating a function that has no name... so in the part where it says "process.std.in(end'', function() {.. etc" ------------------------------------------------------------------------You create a variable called var myObject = new Object
          So this "new Object" is it the default referral to the no-named function listed at the first line, i.e. "..., function () {" ? does that mean "Object" is a reserved keyword?

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • Jancl0 9 years ago + 0 comments

            reading and understanding someone elses code is important, but the task suggests that we had to create the object ourselves

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • gitblame 9 years ago + 0 comments

              You should have given an array parameter to printObjectProperty function instead of an Object. You guys could have added an extra problem on Scope (or DOM or RegExp) instead of a problem on code reading practice. I don't think having code reading exericses in a 7-day contest make much sense.

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

          1. Challenge Walkthrough
            Let's walk through this sample challenge and explore the features of the code editor.1 of 6
          2. Review the problem statement
            Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
          3. Choose a language
            Select the language you wish to use to solve this challenge.3 of 6
          4. Enter your code
            Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
          5. Test your code
            You can compile your code and test it for errors and accuracy before submitting.5 of 6
          6. Submit to see results
            When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
          1. Check your score