diff --git a/solutions/day-02/index.html b/solutions/day-02/index.html index fe277e8..b808d2b 100644 --- a/solutions/day-02/index.html +++ b/solutions/day-02/index.html @@ -101,38 +101,77 @@ // JSX element + const welcome = 'Welcome to 30 Days Of React' + const title = 'Getting Started React' + const subtitle = 'JavaScript Library' + const author = { + firstName: 'Derrek', + lastName: 'Gass' + } + const date = 'Oct 15, 2020' + const numOne = 3 + const numTwo = 2 + + + const yearBorn = 1988 + const currentYear = new Date().getFullYear() + const age = currentYear - yearBorn + const personAge = ( +

+ {' '} + {author.firstName} {author.lastName} is {age} years old +

+ ) + + const techs = ['HTML', 'CSS', 'JavaScript'] - const header = (
-

Welcome to 30 Days Of React

-

Getting Started React

-

JavaScript Library

-

Derrek Gass

- Oct 2, 2020 +

{welcome}

+

{title}

+

{subtitle}

+

Student: {author.firstName} {author.lastName}

+ Date: {date}
) - - const main = ( + + const result = ( +

+ {numOne} + {numTwo} = {numOne + numTwo} +

+ ) + + + + // JSX element, main + const main = (
-
-

Prerequisite to get started react.js:

- -
+
+

+ Prerequisite to get started{' '} + + react.js + + : +

+ + {result} + {personAge} +
- ) + ) + + + + const copyRight = 'Copyright 2020' // JSX element, footer const footer = ( )