LBRY Block Explorer

LBRY Claims • 18-test-if-object-is-instance-of

af3c577b2d6e4c2fedf40c99d2756649d119f2fc

Published By
Created On
25 Jun 2021 17:21:27 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
18 - Test if Object is Instance of Constructor - Quality Assurance with Chai - freeCodeCamp Tutorial
The final object methods we look at are instanceOf() and notInstanceOf(). These can be used to determine if an object is an instance of a particular class or constructor.

Link to Challenge : https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/test-if-an-object-is-an-instance-of-a-constructor
Written Guide: https://www.notion.so/ganeshh123/Test-if-an-Object-is-an-Instance-of-a-Constructor-efa674f7e6ae4ec8bdbe217a4cd0cc74

Full Playlist for this course : https://www.youtube.com/playlist?list=PLhGp6N0DI_1SVteCORbgwlxJkAbcTiZyj
All Writen Guides for this course : https://www.notion.so/ganeshh123/54ecbf7833414db885eec37f580599b4
All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26

0:00 - Concepts:
0:03 - assert.instanceOf()
Asserts that value is an instance of constructor.
https://www.chaijs.com/api/assert/#method_instanceof

01:50 - assert.notInstanceOf()
Asserts value is not an instance of constructor.
https://www.chaijs.com/api/assert/#method_notinstanceof

02:48 - Challenge Solution

-————————————————————————————————————-
Chai is an assertion library, similar to Node's built-in assert. It makes testing much easier by giving you lots of assertions you can run against your code.

freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are partnered with other nonprofits to build web applications, giving the students practical development experience.

Thanks for Watching!
...
https://www.youtube.com/watch?v=xZReLg8KaDo
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
02 -
Controlling
VIDEO
05 -
Controlling
VIDEO
RESET
Controlling
VIDEO
14 -
Controlling
VIDEO
HOW C
Controlling
VIDEO
QUICK
Controlling
VIDEO
14 -
Controlling
VIDEO
RESET
Controlling
VIDEO
06 -