Q. The escape sequence ‘\f’ stands for _________

  • (A) Form feed
  • (B) \f is not present in JavaScript
  • (C) Representation of functions that returns a value
  • (D) Floating numbers
💬 Discuss
✅ Correct Answer: (A) Form feed
Explanation:

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):

HelloWorld

(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

Explanation by: Mr. Dubey

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):

HelloWorld

(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

💬 Discussion


📊 Question Analytics

👁️
248
Total Visits
📽️
4 y ago
Published
🎖️
Kirti
Publisher
📈
99%
Success Rate