commit 7ca906f65ca924d71e39eba0cbdba6956774a3bd
parent 85ed72730a929413e6759690cf84093e70e8fa33
Author: thing1 <thing1@seacrossedlovers.xyz>
Date: Mon, 9 Feb 2026 12:45:00 +0000
js
Diffstat:
2 files changed, 44 insertions(+), 7 deletions(-)
diff --git a/CS10120/09.02.26.md b/CS10120/09.02.26.md
@@ -0,0 +1,37 @@
+# 09/02/26
+
+## `'[object Object][object Object]'`
+
+- Technically called ECMA-262, ISO-16262
+
+- You can use the `script` tag in HTML to write javascript
+or you can use the src attr in the tag to use an external file
+
+- Javascript used C like comments
+
+- Scripts can also be used as attrs to things like buttons,
+for example the attr `onclick` on a button can take a string
+of javascript to be executed on click
+
+- Functions in javascript look like so
+```
+function NAME(ARGS...) {
+ ...
+}
+```
+and it is recommend to put funcs in the `head` part of the
+document, but if they will only be used in some sections
+then it should be placed next to the section to avoid lag
+
+- Javascript can interact with html via the DOM, which is basically
+an AST of the document. The main way to get the DOM is using
+`document.getElementById(ID)` which gives you that node in the
+tree. This function returns an object with the attribute
+`innerHTML` which you can set to a string and it will make an effect
+on the tree
+
+- Javascript string litterals should be double quotes, while in
+HTML you should use single quotes
+
+- You can also get info from the browser using the BOM (browser object moddel),
+to get the width and height, you can use `window.innerWidth` and `window.innerHeight`
diff --git a/CS10720/tutorials/ws2.md b/CS10720/tutorials/ws2.md
@@ -1,18 +1,18 @@
# 1
-`(9n ^ 6) - (12n ^ 4) + (42n ^ 3) + 49`, degree: 6
+`(9n ^ 6) - (12n ^ 4) + (42n ^ 3) + 49`, degree: 6: correct
-already simplified, degree: 1
+already simplified, degree: 1: wasnt a polynomial
-not a ploynomial, degree: 1
+not a ploynomial, degree: 1: correct
-`42`, degree: 0
+`42`, degree: 0: correct
# 2
-8
+8: correct
-9
+9: correct
-16
+16: maybe???