What is in Name

Developer
Size
1,749 Kb
Views
56,672

How do I make an what is in name?

What is a what is in name? How do you make a what is in name? This script and codes were developed by Ben on 08 August 2022, Monday.

What is in Name Previews

What is in Name - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>What is in Name</title>
</head>
<body> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

What is in Name - Script Codes JS Codes

function whatIsInAName(collection, source) { // What's in a name? var arr = []; // Only change code below this line for (var index in collection){ console.log(`iteration ${index}`) var sourceInObject = true for (var prop in source){ console.log(`iteration ${prop}`) console.log(`source[prop]=== ${source[prop]} collection[index][prop]===${collection[index][prop]}`) if (source[prop]!=collection[index][prop]){ sourceInObject = false break } } if (sourceInObject===true){ arr.push(collection[index]) console.log(`-QUALIFIES-`) console.log(collection[index]) } } console.log('---ARR---') console.log(arr) // Only change code above this line return arr;
}
whatIsInAName([{ first: "Romeo", last: "Montague" }, { first: "Mercutio", last: null }, { first: "Tybalt", last: "Capulet" }], { last: "Capulet" });
whatIsInAName([{ "a": 1 }, { "a": 1 }, { "a": 1, "b": 2 }], { "a": 1 })
whatIsInAName([{ "a": 1, "b": 2 }, { "a": 1 }, { "a": 1, "b": 2, "c": 2 }], { "a": 1, "b": 2 })
whatIsInAName([{ "a": 1, "b": 2 }, { "a": 1 }, { "a": 1, "b": 2, "c": 2 }], { "a": 1, "c": 2 })
What is in Name - Script Codes
What is in Name - Script Codes
Home Page Home
Developer Ben
Username bencarp
Uploaded August 08, 2022
Rating 3
Size 1,749 Kb
Views 56,672
Do you need developer help for What is in Name?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Ben (bencarp) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!