fix: Object Oriented Programming: Use Dot Notation to Access the Properties of an Object (#34675)
* fix: typos * fix: removed unnecessary assert messagepull/35420/head
parent
0c652e3ace
commit
665c9cb47f
|
@ -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));
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue