Q. The escape sequence ‘\f’ stands for _________
In JavaScript, the escape sequence \f stands for Form Feed. It is a control character used in old printers to signal a page break. However, in modern JavaScript applications, it is rarely used and often ignored by modern browsers and text processors.
Example in JavaScript:
console.log("Hello\fWorld");
Output (may vary depending on the console):
HelloWorld
(The \f may not be visible in many text editors.)
Why Not Other Options?
- (B) \f is not present in JavaScript → ❌ Incorrect (It does exist in JavaScript).
- (C) Representation of functions that return a value → ❌ Incorrect (\f is not related to functions).
- (D) Floating numbers → ❌ Incorrect (\f has nothing to do with floating-point numbers).
Final Answer:
✅ (A) Form feed