Q1.Explain The Concept of Truthy & Falsy Values in JavaScript.
What Are Truthy Values?
Truthy values are values that are evaluated to be true when used in a Boolean context. Simply put, any value that is not explicitly falsy is considered truthy.
What Are Falsy Values?
Falsy values are values that evaluate to false when used in a Boolean. JavaScript has a fixed list of falsy values.
Q2. Variable scope in JavaScript.
Scope and lifetime of variables in Java with examples ...The scope of a variable refers to the specific region of your code where that variable is visible and accessible. It dictates which parts of your program can "see" or manipulate a variable, determining both its accessibility and its lifetime (how long it stays in memory).
Q4.parseInt()
The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems).
These are questions,I have written Blogs and read and write
Q3.Default Statement and Q5.Data types in JS and Q6: What is typecasting in JS, and Q7: What are HTML Attributes, and Q8.What is the position: then Relative and Absolute
Self-Introduction Impore:TBD
Top comments (0)