Null vs Undefined
Okay, let’s make it fun!
I hope this way will make it stick to you.
1. var x;
3. => undefined
1. console.log(typeof null);
2. => object
It is a special-purpose object that…
Difference between Framework and Library — A library usually focuses on a narrow scope. It provides a set of helper functions, methods, etc which you can call in your project to achieve specific functionality. It’s basically a collection of class definitions that is written mainly to promote code reuse. There’s no need to start from scratch every time, you can easily use written by others to save time and energy. As Library has a narrow scope, the APIs are also smaller and ultimately the project requires fewer dependencies to get things done.
Whereas, Frameworks are like the foundation on which…
charAt()— It returns the character of the given index. Note that, All the string index starts from 0. Therefore, character = string[index-1]
var name = “shuvo”;
returns => s.
concat ()— It basically combines any string, character, number or any sort of data having no gap.
Var a = “Appl”;