Skip to content
This repository was archived by the owner on Dec 9, 2018. It is now read-only.

Commit b0bc415

Browse files
author
Pearl Chen
committed
Merge branch 'master' of https://github.com/pchen/LLC-JavaScript
2 parents 988676d + 4a8e95a commit b0bc415

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index2.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,10 +641,12 @@ <h2>Built-in JavaScript Properties</h2>
641641
<p>In this workshop we won't be creating any of our own objects but JavaScript already has many objects built into the language.</p>
642642
<p>Let's look at a string object and the <code>length</code> property which returns the number of characters in a string. Try putting your own name in here.</p>
643643
<textarea class='coder-editor'>
644-
var firstName = "Christina";
644+
<script>
645+
var firstName = "Pearl";
645646

646647
var numberOfLetters = firstName.length;
647648
document.write( numberOfLetters );
649+
</script>
648650
</textarea>
649651
</article>
650652
<!-- SLIDE: -->
@@ -707,7 +709,7 @@ <h2>Functions in Objects</h2>
707709
<article class='slide slide-list'>
708710
<h3>Object Methods</h3>
709711
<p>When a function is associated with an object we call it a <span class="keyword">METHOD</span>.</p>
710-
<p>Let's say you're having a robot sale! Everything is 50% off. But, after doing the math, you notice that the sale price is a bit off.. Lets declare a sale price and manipulate it using <code>toFixed()</code>. When you use a method, it gives you access to all the hard work that someone else did and it only takes you one line to use it!</p>
712+
<p>Let's say you're having a robot sale! Everything is 50% off. But, after doing the math, you notice that the sale price is a bit off.. Let's declare a sale price and manipulate it using <code>toFixed()</code>. When you use a method, it gives you access to all the hard work that someone else did and it only takes you one line to use it!</p>
711713
<textarea class='coder-editor'>
712714
<script>
713715
var salePrice1 = 20.00 * 0.50;

0 commit comments

Comments
 (0)