Week 1: Introduction to Javascript Part I - GirlsTooCode/WebDev GitHub Wiki

Introduction to functions in JavaScript

What is JavaScript? big question, right? Well, here’s the short answer:

JavaScript is a scripting language used to create and control dynamic website content—but that might not make a lot of sense if you’re new to tech. So let’s replace “dynamic website content” with “things that move, refresh, or otherwise change on your screen without requiring you to manually reload a web page.”

Think features like animated graphics, photo slideshows, autocomplete text suggestions, and interactive forms. Or even better, think about web features you completely take for granted, like when your Facebook timeline updates on your screen or Google suggests search terms based on a few letters you’ve typed into your search bar. In both cases, that’s JavaScript in action.

Prerequisites

Students are expected to have some experience with programming. Familiarity and mastery of fundamental programming techniques is required. These include:

  • The concept of variable declaration
  • Looping constructs such as for, while, do-while and for-each etc.
  • Conditional constructs such as if-else, switch-case, ternary-operation etc.
  • Object-Oriented Programming Concepts like inheritance, abstraction, encapsulation, polymorphism

Learning Objectives

After this week/session, Students should :

  • Be comfortable with the concept of functions in JavaScript
  • Be able to create functions through function declaration, function expression, and arrow functions
  • Have a thorough understanding of Garbage Collection in JavaScript
  • Explain and appreciate the use of Higher Order Functions

Reading Resources: