A Passionate software developer
import { useEffect, useState } from "react"; import "./styles.css"; export default function App() { const [seconds, setSeconds] = useState(60); //...
function reverseEachWord(sentence) { const words = sentence.split(' '); // Split the sentence into words const reversedWords = words.map(word...
import { useRef } from "react"; import "./styles.css"; export default function App() { const inputRef = useRef();const handleFunction = () => {...
function flattenArray(arr){ let flattened = []; function flatten(ArrElem){ for(let i=0;i<ArrElem.length; i++){ if(Array.isArray(ArrElem[i])){...
let counter = 0; function getData(){ console.log("functionc alled"); } function myDebounce(call, d){ let timer; return function(...args){ if(timer)...
import "./styles.css"; import { useState } from "react"; export default function App() { const [todoList, setTodoList] = useState([]); const [input,...