πŸ“Š Fundamentals of Web Designing
Q. <script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); </script>
  • (A) 9123
  • (B) 91234
  • (C) 80000
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) 9123

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
4
Total Visits
πŸ“½οΈ
5 mo ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
82%
Success Rate
", "answerCount": 1, "acceptedAnswer": { "@type": "Answer", "text": "9123", "url": "https://www.mcqbuddy.com/faculty/59602-script-typetextjavascript-var-s-9123456-or-80000-var-pattern-d4-var-output-smatchpattern-documentwriteoutput-scri" }, "suggestedAnswer": [ { "@type": "Answer", "text": "9123" }, { "@type": "Answer", "text": "91234" }, { "@type": "Answer", "text": "80000" }, { "@type": "Answer", "text": "none of the above" } ], "author": { "@type": "Person", "name": "Team MCQ Buddy" }, "dateCreated": "2025-09-27T09:23:40+05:30" } }