Sort 6 Discussions, By:

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

  • davidmeza 9 years ago + 1 comment

    How is this day 4? Didn't we do this in day 1? At least use Symbols if we are learning ES6 features.

    Add Reply Preview cancel

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

    • PRASHANTB1984 9 years ago + 0 comments

      Well, since many people are learning programming for the very first time, slight variations or repetitions of features previously covered, might occur - typically with some new concept mixed in

      Add Reply Preview cancel

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

    • jonatan_k 9 years ago + 0 comments

      The primitive type names provided in the description can be confusing - in fact the primitive types are written in lowercase (opposite to object equivalents which start with the capital letter).

      You can try the following to see the real type names:

      typeof "16"

      typeof 16

      typeof true

      Add Reply Preview cancel

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

      • Shoban05 9 years ago + 1 comment

        Doubt Regarding string..!!

        var my_str = "Hello World!"; Test case Passed

        var my_str = new String("Hello World!"); Test Case not passing

        Add Reply Preview cancel

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

        • verapi03 9 years ago + 0 comments

          It's because when using "new String" you are not creating a string but an object of type string. They are different. The best advice is try to NOT using the keyword "new" to create a primitive data type (as a string).

          Add Reply Preview cancel

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

        • gswheeler 9 years ago + 1 comment

          Well they did say "assign" them a particular datatype.

          var my_num = "4.2.3".split('.').length;
          var my_bool = ((4 + 17) < (25 - 6));
          var my_str = (4 + 8 * 3).toString();

          Add Reply Preview cancel

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

          • PRASHANTB1984 9 years ago + 0 comments

            Well, yes, that is valid :) And it means that you understood the concepts that we are looking for in any case.

            Add Reply Preview cancel

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

          • [deleted] 9 years ago + 1 comment

            I started a GIT branch for those who need a little help let me know if you need explanations added as well https://github.com/giannioudis/7-Days-of-JavaScript

            Add Reply Preview cancel

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

            • PRASHANTB1984 9 years ago + 0 comments

              Thank you for creating this material. It is quite useful!

              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