Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can I please get the correct code for the attached questions 5. Why does this code return the results that it does? function isBig (thing)

can I please get the correct code for the attached questions

image text in transcribed

5. Why does this code return the results that it does? function isBig (thing) { if (thing == 0 || thing == 1 || thing == 2) { return false } return true } isBig (1) isBig ([ 2] ) isBig ([ 3] ) // false // false // true 6. Write a function to check if an input contains a substring in the following format. Please make use of regular expressions in this task. Sample input: (see bold text for substring to identify) domain.com/items/jyw73982/fentum-accumsan-1452261075-9781452261072 / result = true domain.com/items/der0932/ker-fooba-1461075-971072-123124124 | result = false domain.com/items/kdm3891/sem-mollis-fringilla-678123478691234-2345567 | result = true

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions