From 472612ce3023afcfc1c2828ca8f6376fc29e45f8 Mon Sep 17 00:00:00 2001 From: DanielLin1 Date: Mon, 16 Nov 2015 15:35:55 -0500 Subject: [PATCH] Update js-worksheet.md --- js-worksheet.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js-worksheet.md b/js-worksheet.md index 016b1d4..a100042 100644 --- a/js-worksheet.md +++ b/js-worksheet.md @@ -3,10 +3,12 @@ ####Topic: JavaScript * Explain what a function is. Give an example. +* A relationship or a expersion involving one or more variable for example function(){ console.log(name) } * Explain what a parameter is. Give an example. -* When we want to look up what a word means, we go to a dictionary. Similarly, when we want to look up what a standard JavaScript function does, we look at _______________. +* Paramter is used in subroutine to refer to one of the piece of data provided as a input for subroutine, For example def add(x,y) return (x,y) +* When we want to look up what a word means, we go to a dictionary. Similarly, when we want to look up what a standard JavaScript function does, we look at Google. * In the following piece of code, what variable(s) are in scope at Point A, Point B, and -Point C? +Point C? It's Point A and B ``` var hooligan = true; @@ -23,7 +25,7 @@ function rocks() { // Point C ``` -* What does the following code print? +* What does the following code print? No answer ``` var x = 7; @@ -37,9 +39,11 @@ console.log("Outside the function, x is " + x); someFunction(); ``` * Write a function that returns the result of the following equation: 5a^2 + 4b + c. You should use the pow() function. Your function should take in three parameters (a,b,c). +Why you gotta make tis so complaiced it;s way too hard ;-; there's no way. ####Some review -* Close this HTML element (remember HTML??): `

My Books` +* Close this HTML element (remember HTML??): `

My Books

* What HTML element is used to create an **ordered list** of items? +* ol * Write a CSS rule that will make only the word *Adams* red: `Washington Adams