fix: Object Oriented Programming: Use Dot Notation to Access the Properties of an Object (#34675)

* fix: typos

* fix: removed unnecessary assert message
pull/35420/head
Aditya 2019-02-26 08:54:06 +05:30 committed by Manish Giri
parent 0c652e3ace
commit 665c9cb47f
1 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@ Print both <code>properties</code> of the <code>dog</code> object below to your
```yml
tests:
- text: Your should use <code>console.log</code> to print the value for the <code>name</code> property of the <code>dog</code> object.
testString: assert(/console.log\(.*dog\.name.*\)/g.test(code), 'Your should use <code>console.log</code> to print the value for the <code>name</code> property of the <code>dog</code> object.');
- text: Your should use <code>console.log</code> to print the value for the <code>numLegs</code> property of the <code>dog</code> object.
testString: assert(/console.log\(.*dog\.numLegs.*\)/g.test(code), 'Your should use <code>console.log</code> to print the value for the <code>numLegs</code> property of the <code>dog</code> object.');
- text: Your code should use <code>console.log</code> to print the value for the <code>name</code> property of the <code>dog</code> object.
testString: assert(/console.log\(.*dog\.name.*\)/g.test(code));
- text: Your code should use <code>console.log</code> to print the value for the <code>numLegs</code> property of the <code>dog</code> object.
testString: assert(/console.log\(.*dog\.numLegs.*\)/g.test(code));
```