- task Q. What are the differences in JS string created like ’ test’ vs new String(‘test’)?
- js_arguments can be used to find the callee when creating stack trace.
const arr2 = arr.constructor(); // is like new Array()
Tried to code into implementation of Array, it gives native code

const arrOfUndefined = [,,,] // one less undefined than comma const arrUn = new Array(3);
const arr = []; arr.someProp = ‘Value is here’; console.log(arr); // [what: ‘am I doing here?
To get global this in object
#function_expressions

Javascript_Functions Functions are also objects and have properties like length, name and caller.
function myFunc() {
console.log(arguments.callee.myProp)
console.log(myFunc.myProp)
}
myFunc.myProp = 'stuff'
myFunc()
// stuff
// stuff
function_statements arehoisted
const myString2 = (function(sentence) {
return sentence
})('Im a sentence')
