Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Goal:
- Create JavaScript functions on Cities data to replicate the equivalent SQL operations on Cities RDBMS (SQLite DB) table.
- JS File: B1.js
- Goal: Get object a from list by property value
- SQL: select * from cities where name = 'Chiang Mai'
- JS File: B1.js
- Goal: Get object a from list by property value
- SQL: select * from cities where name = 'Chiang Mai'
- JS File: B2.js
- Goal: Filter a List Based on Multiple Predicates
- SQL: select * from cities where cost < 1050 and humidity > 40
Add Comment
Please, Sign In to add comment