Introduction - Introduction to Javascript - Review

13 important questions on Introduction - Introduction to Javascript - Review

Where is the console.log() method used for?

To log or print messages, objects and info to the console

What is a Library?

A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage (already existing functions created by others)

What is the structure of a Library?

Library.methodname()
Math.random()
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

Which method calls for the string length?

variable.length()

What does Math.floor() print?

The largest integer (hele getal) less than or equal to the given number

When is the datatype Null printed?

In the absence of the value

Give the five Arithmetic Operators

  • Optellen: +
  • Aftrekken: -
  • Vermenigvuldigen: *
  • Delen: /
  • Modulo: %

How does an Assignment Operator work?

Assigns a value to its left operand based on the value of its right operand

What are the 4 Assignment Operators?

  • Optellen: +=
  • Aftrekken: -=
  • Vermenigvuldigen: *=
  • Delen: /=


x += y -> x=x+y
let number=100
number += 10
number = number+10
number=110

In which two ways can you add a variable in the middle of a sentence?

  • 'Tommy is' + age + 'years old.'    (String interpolation)
  • 'Tommy is $ {age} years old.'      (String concatenation)

Why do variables ensure code reusability?

It can be used to replace the same value in multiple places

When will Undefined appear?

Lack of defined value: variable that is declared but not intialized (geen waarde) to a value

let a
console.log(a)   ->undefined

Which three keywords can be used to declare a variable?

  • Var
  • Let (preferred)
  • Const

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo