JavaScript for Beginners freeCodeCamp

Cards (387)

  • Who is the instructor of the Beginner’s Javascript course?
    Beau Carnes
  • What is the target audience for the Beginner’s Javascript course?
    Beginners or those needing a refresher
  • How does this course relate to freeCodeCamp.org?
    It follows the freeCodeCamp Javascript curriculum
  • What should you do after completing the course?
    Create some Javascript projects on your own
  • What is one way to write Javascript code?
    Using a code editor like Sublime Text
  • What is the purpose of the <script> tags in HTML?
    To include Javascript code in HTML files
  • What does console.log do in Javascript?
    Displays output in the console
  • What is CodePen used for?
    To create and test HTML, CSS, and Javascript
  • What is the first thing discussed in the course?
    Comments in Javascript
  • What are comments in Javascript used for?
    To create notes that are ignored by the code
  • How do you create an in-line comment in Javascript?
    Using // before the comment
  • What is the difference between undefined and null in Javascript?
    Undefined means not defined; null means explicitly nothing
  • How many data types does Javascript provide?
    Seven different data types
  • What is a boolean in Javascript?
    A data type that can be true or false
  • What does a variable do in Javascript?
    Stores and manipulates data dynamically
  • What keyword is used to declare a variable in Javascript?
    var
  • What is the difference between var, let, and const?
    Var is global; let is block-scoped; const is immutable
  • What happens if you try to change a const variable?
    You will get an ERROR
  • What is the assignment operator in Javascript?
    =
  • What is the purpose of a semicolon in Javascript?
    To indicate the end of a statement
  • What does console.log allow you to do?
    See variable values in the console
  • What does initializing a variable mean?
    Setting it to an initial value
  • What is case sensitivity in variable names?
    Capitalization matters in variable names
  • What operator is used for addition in Javascript?
    +
  • How do you subtract numbers in Javascript?
    Using the subtraction sign (-)
  • What symbol is used for multiplication in Javascript?
    *
  • How do you divide numbers in Javascript?
    Using the division sign (/)
  • What does incrementing a number mean?
    Adding 1 to the number
  • What operator is used to increment a number?
    ++
  • What does decrementing a number mean?
    Subtracting 1 from the number
  • What is a decimal number in Javascript?
    A number with a decimal point
  • How do you multiply decimal numbers in Javascript?
    Using the same method as integers
  • What does the remainder operator (%) do?
    Gives the remainder of division
  • How can the remainder operator be used?
    To determine if a number is even or odd
  • What is the result of 11 % 3?
    2
  • What are the main data types in Javascript?
    • Undefined
    • Null
    • Boolean
    • String
    • Symbol
    • Number
    • Object
  • What are the three ways to declare a variable in Javascript?
    1. var
    2. let
    3. const
  • What are the differences between var, let, and const?
    • Var: function-scoped or globally scoped
    • Let: block-scoped
    • Const: immutable variable
  • What are the basic arithmetic operations in Javascript?
    1. Addition (+)
    2. Subtraction (-)
    3. Multiplication (*)
    4. Division (/)
    5. Remainder (%)
  • What are the methods to log output in Javascript?
    • console.log
    • Popup alerts