Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lyndsey Browning
    @lyndseybrowning
    I understand it more now by creating an example: http://jsfiddle.net/LyndseyB/6qgvufuL/
    Alexis Abril
    @alexisabril
    @lyndseybrowning Yep, that’s it!
    Zurc
    @Zurc
    This is working for me...
    http://jsfiddle.net/cruzj/hpep8rfj/5/
    Lyndsey Browning
    @lyndseybrowning
    Why not just have one method that creates the passed in element? e.g. http://jsfiddle.net/LyndseyB/6rxwzbnp/1/
    Alexis Abril
    @alexisabril
    @Zurc That is technically correct, but you wouldn’t want to create functions as strings. A library created in this fashion would be difficult to scale and test.
    @lyndseybrowning That would work, however it breaks the API of the exercise
    Alexis Abril
    @alexisabril
    Just in case anyone missed the blog post, I posted the exercises(including next week’s) here: https://github.com/bitovi/training
    chasgg
    @chasgg
    Using closures:
    Lotfi Harrabi
    @lotfire
    hello folks! here's my make solution: https://jsfiddle.net/Lotfire/p4Laat3f/1/
    OlgaMaraeva
    @OlgaMaraeva
    Hello everyone! I used array, loop and closure. http://jsfiddle.net/osgc2t54
    Lotfi Harrabi
    @lotfire
    Hello OlgaMaraeva
    OlgaMaraeva
    @OlgaMaraeva
    Hello lotfire, nice to meet you!
    Justin Meyer
    @justinbmeyer
    @OlgaMaraeva looks great!
    @lotfire looks good!
    OlgaMaraeva
    @OlgaMaraeva
    justinbmeyer, thank you very much! :)
    Lotfi Harrabi
    @lotfire
    Thanks @justinbmeyer & congrats for the baby but most importantly good luck after birth 😀
    Justin Meyer
    @justinbmeyer
    ha, thanks, no problem
    Emmanuel Hernandez
    @ManuH
    hey guys My friend @sebastianlujan and I were trying to make the task but couldn't do so. We decided to check some of the answers and neither of us could make the codes work
    need some help
    Sebastian
    @sebastianlujan
    we coded in cloud9 but I don't think that's the problem
    Alexis Abril
    @alexisabril
    @ManuH @sebastianlujan Be sure to join us this Wednesday. We’ll always go over the prior week’s exercise & solutions the following week.
    Lotfi Harrabi
    @lotfire
    @sebastianlujan @ManuH could you post your code here or give a link?
    George Heeres
    @gheeres
    var make = function(){
      var result = {};
      [ 'a', 'h1' ].forEach(function(element) {
        result[element] = (function(name) {
          return(function() {
            return(document.createElement(name));
          });
        })(element);
      });
      return(result);
    }();
    Justin Meyer
    @justinbmeyer
    Hello all, we are going to get started in 10 min
    Has a jsbin for last week's training exercise
    Here's the exercise for this week: http://jsbin.com/yamuna/3/edit?html,js,output
    Emmanuel Hernandez
    @ManuH
    nice
    Lyndsey Browning
    @lyndseybrowning
    Evening all
    Alexis Abril
    @alexisabril
    Welcome back everyone!
    Lotfi Harrabi
    @lotfire
    hello!
    Emmanuel Hernandez
    @ManuH
    hello
    coombsyim
    @coombsyim
    Evening ;)
    Madelene Campos
    @Madelene
    Hello! Is it possible to make it a bit larger?
    cheers :)
    thanks!
    Sebastian
    @sebastianlujan
    hello there!
    chasgg
    @chasgg
    Can't read the jsBin url on the video. If we could, we could use the jsBin watch capability to see what you're doing.
    Alexis Abril
    @alexisabril
    Emmanuel Hernandez
    @ManuH
    I used a for each and didn't worked
    there’s a better link :D
    Lotfi Harrabi
    @lotfire
    is Person what is called a constructor?
    Emmanuel Hernandez
    @ManuH
    so when I use de "new" operator 'this' points to the function ?
    Alexis Abril
    @alexisabril
    @ManuH “this” in that example would point to the newly created object
    @lotfire A “constructor” is just a function we invoke with the “new” keyword
    @lotfire we expect a constructor function to create a new object with its proto chain setup(eg: a new Person() should return an object that “inherits” from Person.prototype)
    Lotfi Harrabi
    @lotfire
    @alexisabril thanks got it