Skip to content

Instantly share code, notes, and snippets.

View arifulhb's full-sized avatar
💡
Side project https://www.laptoplist.com

Ariful Haque arifulhb

💡
Side project https://www.laptoplist.com
View GitHub Profile
@arifulhb
arifulhb / amazon-pa-api5-getItemById
Created October 27, 2019 08:12
Amazon-PA-API50-getItemById
let resourceList = resources.getItemInfo
resourceList = resourceList
.concat(resources.getImagesPrimary)
api.getItemById(['B079JD7F7G'], {
parameters: resourceList,
condition: condition.Any
}).then((response) => {
console.log(' ===== find by Item ids =====')
console.log('data', response.data)
@arifulhb
arifulhb / fibonacci.js
Created October 9, 2020 13:11
Print Fibonacci series using recursive function
function fib(num) {
let sequence = [0, 1]
function helper(sequence, num) {
const length = sequence.length
// get sum of last two numbers
let sum = sequence[length - 1] + sequence[length - 2]