Question: JavaScript Given an input sequence of numbers separate by spaces, output I'm feeling lucky!! if the pattern 23 # 28 is present, where # is

JavaScript

Given an input sequence of numbers separate by spaces, output "I'm feeling lucky!!" if the pattern 23 # 28 is present, where # is any number. Otherwise output "Nope not lucky". Only use prompt() and and document.writeln() for I/O.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!