Sololearn JavaScript course Objects answers

Here are all the questions and answers that I hope will help you learn JavaScript course.
Sololearn JavaScript course Overview answers
Sololearn JavaScript course Basic Concepts answers
Sololearn JavaScript course Conditionals and Loops answers
Sololearn JavaScript course Functions answers
Sololearn JavaScript course Core Objects answers
Sololearn JavaScript course DOM & Events answers
Sololearn JavaScript course ECMAScript 6 answers

31.1 Lesson

Introducing Objects

Question:

JavaScript Objects
In reference to an object, color, height, weight and name are all examples of:

Answer:

properties

Question:

Object Properties
What built-in property is used to count the number of characters in an object's property?

Answer:

length

Question:

Object Methods
Access the "color" property of the "hair" object using dot syntax.

Answer:

hair.color

32.1 Lesson

Creating Your Own Objects

Question:

The Object Constructor
Fill in the blanks to create a constructor function:

Answer:

function movie (title, director) {
  this.title = title;
  this.director = director;
}

Question:

Creating Objects
What keyword is used for creating an instance of an object?

Answer:

new

Question:

Creating Objects
Which two components are necessary in order to use information contained within an object?

Answer:

object's name
property's name

33.1 Lesson

Object Initialization

Question:

Object Initialization
Fill in the blanks:

Answer:

simba = {
  category: "lion", 
  gender: "male"
}

Question:

Using Object Initializers
Complete the following expression to display the "simba" object's "category" property on the screen:

Answer:

document.write(simba.category);

34.1 Lesson

Adding Methods

Question:

Methods
The "this" keyword in the method means:

Answer:

The current object

Question:

Methods
Please associate the "testData" constructor function below with a method called "mymethod":

Answer:

function testData (first, second) {
  this.first = first;
  this.second = second;
  this.checkData = mymethod;
}

Question:

Methods
In order to use the object's properties within a function, use:

Answer:

The "this" keyword

35.1 Lesson

Module 5 Quiz

Question:

An object's properties are similar to variables; methods are similar to:

Answer:

functions

Question:

What is the result of the following expression?

var myString = "abcdef";
document.write(myString.length);

Answer:

6

Question:

Complete the expression to create an object constructor, taking into account that "height" and "weight" are properties and "calculate" is a method for the given object:

Answer:

function mathCalc (height, weight) {
  this.height = height;
  this.weight = weight;
  this.sampleCalc = calculate;
}