4elements, web design and consultancy

  1. Learn Computer Science With JavaScript: Part 3, Loops

    IntroductionSuppose you have been given the task to write a program that displays the numbers 1–100. One way you could accomplish this is to write 100 console.log statements. But I’m sure you wouldn’t because you would have become fed up by the 9th or 10th line.  The only part that changes in each statement is the number, so there should be a way to write only one statement. And…

    0 Comments

    Leave a comment › Posted in: Daily

    1. Learn Computer Science With JavaScript: Part 4, Functions

      IntroductionSuppose you have a file that is 82 lines long and consists only of a series of statements. (I hope this is isn’t true, but anything is possible.) How would you understand what the program does? How would you modify it or use it? It would be kind of hard to do anything with this code because there is no structure to it.  To solve this problem, you could use functions. A…

      0 Comments

      Leave a comment › Posted in: Daily

    1. Learn Computer Science With JavaScript: Part 2, Conditionals

      IntroductionIn part one of this series, our programs were only written as a sequence of statements. This structure severely limits what we can do. Say you are designing a program that needs to log in users. You may want to direct a user to one page if they give the correct credentials and send them to another if they aren’t registered. To do this, you need to use a decision structure…

      0 Comments

      Leave a comment › Posted in: Daily

    1. 6 Things That Make Yarn the Best JavaScript Package Manager

      {body}

      0 Comments

      Leave a comment › Posted in:

    1. Learn Computer Science With JavaScript: Part 1, The Basics

      IntroductionJavaScript is a language that we can use to write programs that run in a browser or on a server using Node. Because of Node, you can use JavaScript to build full web applications like Twitter or games like Agar.io.  This is the first lesson in a four-part series where I will teach you the programming fundamentals you will need so you can learn to build your own apps. In part…

      0 Comments

      Leave a comment › Posted in: Daily

    1. Create Interactive Charts Using Plotly.js, Part 5: Pie and Gauge Charts

      If you have been following this series from the beginning, you might have noticed that Plotly.js uses the same scatter type for creating both line charts and bubble charts. The only difference is that we had to set the mode to lines while creating line charts and markers when creating bubble charts. Similarly, Plotly.js allows you to create pie, donut and gauge charts by using the same…

      0 Comments

      Leave a comment › Posted in: Daily

  • Page 1 of 3 pages  1 2 3 >