Decentralized Autonomous Organizations (DAOs) represent one of blockchain technology’s most revolutionary applications, fundamentally reshaping how communities organize, govern, and collaborate in the digital 4 the years, DAOs have evolved from experimental concepts to billion-dollar ecosystems managing everything from DeFi protocols to public goods funding, demonstrating their potential to redefine organizational structures across 5 is a DAO? The definition of a DAO A DAO, short for Decentralized Autonomous Organization , is basically a group that lives on the blockchain. There’s no boss in charge; the rules are written in 6 get tokens, and those tokens give them a 7 an online club where the software keeps the books and carries out whatever the group 8 the conditions are met, the contract just runs on its 9 characteristics (Decentralized, autonomous, smart contract-based) DAOs usually stand out because of three core traits that make them different from old-school organizations: 10 isn’t locked in the hands of a CEO or board.
Instead, token holders share the 11 way, no single person or group can take over the direction or resources. Autonomy. A lot of the work runs on smart 12 of things like handling the treasury or carrying out votes; once the rules are coded, the system just follows 13 launch, it doesn’t need constant human 14 vote, transaction, and decision shows up on the blockchain for anyone to 15 record can’t be changed, which means DAOs operate with a level of openness that’s rare in traditional 16 DAOs matter in Web3 You can think of DAOs as the decision-making backbone of 17 of a boardroom or a CEO, the community decides what happens with the money, the code, and the shared 18 you hold a governance token, you get a say, whether in New York, Nairobi, or sitting at your kitchen table.
That’s the whole point: anyone can jump 19 the Web3 space keeps maturing, DAOs are laying down the rails for projects that are owned by the people using them, not by a single company that can shut things down on a whim. A brief history of DAOs The original “The DAO” (2016) and its collapse Back in 2016, something called The DAO took over crypto 20 was pitched as a community-run venture fund built on Ethereum, and people jumped in 21 the end of its token sale, it had pulled in roughly $150 million worth of ether – an unheard-of amount and one of the largest crowdfunding efforts anyone had 22 came the bad part. A few months later, in June, a hacker spotted a weakness in the 23 flaw let them game the withdrawal function, calling it repeatedly before the system could update 24 that trick, they managed to walk away with about $50 million in 25 exploit, known as a “reentrancy attack,” became one of the most infamous hacks in blockchain history and forced the Ethereum community to rethink security from the ground 26 learned from early DAO experiments The DAO hack didn’t just cost money; it rattled the whole crypto 27 had been saying “code is law,” but that slogan suddenly felt shaky after 28 a line of code could be twisted against its creators, was the system as solid as everyone thought?
Investors and developers alike got a harsh reminder: a single bug can mean millions lost, and skipping security checks is asking for 29 fallout also tore the Ethereum community 30 side argued that the blockchain should stay untouched no matter what, mistakes 31 other camp said the stolen ether had to be returned, even if that meant bending the 32 group backed down, and the debate ended with a split: Ethereum (ETH) on one side and Ethereum Classic (ETC) on the 33 divide wasn’t just technical; it was philosophical and still echoes in governance debates 34 lessons stuck with the community after all this: Double- and triple-check smart contracts before 35 in delays or “pause buttons” to buy time when things go wrong.
Don’t just skim over critical code; prove it works with formal 36 when testing new systems, start small before throwing in serious 37 toward modern DAOs After the DAO fell apart, the whole ecosystem had to grow 38 learned some painful lessons and started building with security at the forefront of their 39 contracts are now audited far more carefully, governance systems have been tested in real-world conditions, and multi-signature wallets are common practice to keep funds safer. Today’s DAOs look very different from those early 40 took the early hits, patched the weak spots, and started shaping governance in ways that aim to keep things both efficient and 41 aren’t fragile trials anymore; they’re steadily turning into the backbone of Web3 42 do DAOs work?
Smart contracts as the foundation Every DAO runs on smart 43 can think of these as bits of code that set the rules: how money moves, how votes are counted, and what happens when certain triggers are 44 those rules are in place, the contract carries them out independently, with no managers or intermediaries stepping 45 the code sits on the blockchain, it can’t be changed whenever someone feels like 46 makes the system predictable and gives members some peace of mind. Still, DAOs aren’t frozen in 47 have a way for people to suggest 48 enough members agree and vote yes, the contract gets updated in a way everyone can see, providing a good example of how DAOs work in practice and a clear case of DAOs explained through action rather than theory.
Token-based voting and governance Governance tokens act like a membership card in a 49 you hold them, you’re part of the community and have a say in how things 50 tokens usually determine how much voting power you have; the more you own, the more weight your vote 51 keep big holders from completely dominating the process, some DAOs experiment with systems like quadratic voting, which gives smaller holders a fairer 52 way proposals move through a DAO can vary, but most follow a similar flow: A community member puts forward an idea or 53 proposal is shared and discussed so people can weigh 54 holders vote during a set window of 55 it passes, the smart contract carries out the decision 56 and resource allocation DAOs handle their funds through on-chain treasuries, basically wallets controlled by smart 57 treasuries can hold different types of assets, such as crypto, governance tokens, and sometimes even NFTs or other digital 58 the money gets spent isn’t up to one person.
Instead, the community has to sign off through the governance process, which keeps resource allocation 59 time, treasury management has become much more 60 DAOs now use multi-signature wallets (where several people need to approve a transaction), timelock contracts that delay execution for extra security, and diversified investment strategies to keep their assets safe and 61 and on-chain rules Because DAOs run on the blockchain, everything they do is open. Votes, financial moves, and even changes to the rules are all recorded on-chain, and anyone can look them 62 level of transparency helps members and outsiders trust the system, since nothing happens behind closed 63 also makes real-time auditing possible, so the community can always check what’s happening without relying on an 64 of DAOs Over the years, DAOs have branched out in many different 65 run major DeFi protocols, some act like venture funds, and others focus on art, social groups, or community 66 the main categories helps show how flexible the DAO model 67 DAOs (Uniswap, Sky, Aave) Protocol DAOs are in charge of decentralized applications and 68 handle upgrades, tweak parameters, and decide how treasury funds are 69 DAOs keep key pieces of DeFi 70 (formerly MakerDao) governs the USDS 71 holders vote on parameters like stability fees, collateral eligibility, and risk management to keep USDS on its dollar 72 can upgrade DAI 1:1 to USDS, and MKR will be converted to SKY during the 73 DAO oversees one of the largest decentralized 74 holders vote on changes to the protocol, fee structures, and allocation of treasury 75 DAO runs a major lending 76 token holders weigh in on interest rates, collateral rules, and new 77 DAO has managed billions in total value locked while keeping governance in the community’s 78 DAOs (MetaCartel Ventures, The LAO) Investment DAOs are like community-run venture 79 pool money and decide where to invest — whether that’s tokens, startups, or other 80 Ventures backs early-stage Web3 applications, with members contributing capital and sharing due diligence 81 and risks are spread across the 82 LAO combines DAO governance with traditional legal structures, allowing accredited investors to fund blockchain startups while navigating regulatory 83 DAOs (PleasrDAO, FlamingoDAO ) Collector DAOs are focused on acquiring, curating, and managing valuable digital assets such as NFTs, artwork, and other 84 of individuals competing to buy rare items, members pool funds and make collective decisions on what to 85 became famous for buying culturally significant digital art, including NFTs tied to internet history and political 86 DAO treats its collection as an investment and a way to preserve digital 87 is one of the earliest NFT-focused 88 brings together investors who collectively own and manage a large portfolio of high-profile NFTs across art, gaming, and metaverse 89 DAOs (Friends with Benefits, CabinDAO) Social DAOs create token-gated communities built around shared interests or 90 mix networking with Web3 91 with Benefits (FWB) is a cultural hub where holding 75 FWB tokens unlocks access to exclusive Discord spaces, events, and 92 DAO is geared toward Web3 93 earn CODE tokens by contributing to projects, education, and community initiatives, giving them more governance 94 DAOs (dOrg, RaidGuild) Service DAOs operate like decentralized 95 organize skilled contributors, designers, developers, and strategists to provide services to other DAOs or external 96 is a developer-focused DAO that builds custom smart contracts, dApps, and Web3 infrastructure for 97 runs as a collective, with members paid directly through the DAO for their 98 is a collective of Web3 builders that takes on client projects and splits rewards based on DAO 99 DAOs (MolochDAO, Gitcoin Grants) Grant DAOs focus on funding public goods and ecosystem projects that are vital to the community and don’t always attract 100 was one of the first to channel resources into Ethereum 101 simple governance model and “rage-quit” feature influenced many later 102 Grants uses quadratic funding to support open-source projects that the wider community values 103 of DAOs Transparency and open governance Everything in a DAO happens on the blockchain.
Votes, spending, and rule changes are recorded on the blockchain; anyone can check 104 level of openness cuts out the hidden decisions you often see in traditional organizations and helps build trust because every action is 105 participation DAOs don’t care where you 106 can take part if you’ve an internet connection and 107 means people from all over the world, in any time zone, can join in, share ideas, and 108 mix of perspectives often leads to insights that a regular company would never have access 109 ownership Instead of power sitting with a board or a handful of shareholders, DAOs spread it across the 110 holders get a real say in how resources are used and where the project is 111 setup creates true community ownership, allowing members to stay engaged and work toward long-term 112 through automation Smart contracts handle much of the day-to-day 113 like managing the treasury, carrying out votes, or distributing rewards can all be automated by 114 means less paperwork, fewer intermediaries, and more consistent results, often at a lower 115 and criticisms of DAOs Governance token concentration and whale influence When looking at DAO challenges and risks, one of the first issues is that voting power often ends up concentrated in the hands of a 116 many cases, voting power is concentrated in the hands of a few large token holders, often called “whales”.
Studies have shown that in some of the biggest DAOs, less than 1% of members control nearly all the voting 117 of a democracy, this can look more like an 118 participants can sometimes push decisions that benefit their holdings, not the wider community, creating conflicts of interest that DAOs were meant to 119 risks (Smart contract exploits) DAOs rely heavily on smart contracts, and while that brings automation and consistency, it also creates technical 120 of these risks trace back to the limits of the underlying Layer 1 chains , things like high gas fees, congestion, or upgrade constraints. A bug in the code can be catastrophic, as The DAO hack back in 2016 121 blockchain code is hard to change once it’s live, even small vulnerabilities can be exploited in big 122 and formal code reviews help, but can’t guarantee perfect 123 governance systems grow more complex, the attack surface only expands, making security a constant 124 and regulatory uncertainty Another problem is the legal gray zone in which DAOs 125 jurisdictions don’t have clear rules for them, which makes things murky around taxes, liability, and 126 recent court cases suggest that DAOs without formal legal wrappers could be treated as general partnerships, meaning every member could be personally responsible for debts and obligations.
That’s a huge risk for participants and one reason larger institutions still hesitate to engage with 127 and decision-making problems Running a community without a central leader isn’t 128 DAOs struggle with voter apathy, where only a small group of active members consistently show up to 129 can leave decision-making in the hands of a 130 top of that, complicated proposals often require expertise that most token holders don’t have, making it easier for savvy actors to influence 131 broad participation with effective governance remains one of the toughest issues the DAO ecosystem hasn’t fully solved yet. Real-world DAO examples Sky (formerly MakerDAO) – Stablecoin governance Sky is one of the longest-running DAO-governed 132 now manages USDS (upgraded from DAI).
SKYtoken holders are designed to vote on stability fees, debt ceilings, and collateral lists, though the governance transition from MKR may still be 133 protocol has navigated multiple market cycles and executed the 2024 upgrade from MKR/DAI to SKY/USDS. Uniswap DAO – Leading DEX governance Uniswap DAO oversees the largest decentralized exchange by trading 134 token holders decide on upgrades, fees, and how treasury funds get used. A highlight of its governance was the move from Uniswap V2 to V3, a major upgrade that required coordination and community 135 protocol upgrades, the DAO has funneled millions of dollars into grants, showing how DAOs can support developers and fund public 136 DAO – Decentralized naming system Governance ENS, or Ethereum Name Service, turns long wallet addresses into easy-to-read names (like “alice.
eth”). The ENS DAO governs this system, with token holders voting on technical upgrades, fee models, and 137 DAO controls a treasury valued at over $1 billion, mainly in ENS tokens and 138 demonstrates how even core internet infrastructure can be run by the people who use it, not by a central 139 – A failed but iconic experiment In late 2021, ConstitutionDAO made global headlines when it tried to buy an original copy of the 140 at a Sotheby’s 141 17,000 people pitched in, raising more than $49 million in a week, an incredible show of how quickly DAOs can 142 group lost the auction to billionaire Ken Griffin, and the DAO dissolved shortly 143 the story didn’t end there: its token, $PEOPLE, lived on as a meme coin, rewarding holders in unexpected 144 though the DAO failed at its main goal, it proved both the power and the limits of crowdfunding at 145 future of DAOs in 2025 and beyond Institutional DAO participation Traditional finance is slowly entering the DAO 146 institutions have started buying tokens and even voting on 147 involvement brings extra capital and expertise, but it also raises a tough question: How do you let big players join without drowning out the community’s voices?
One idea gaining traction is hybrid structures, setups that mix elements of corporations with DAO-style governance , giving both sides room to work 148 frameworks emerging for DAOs The legal side is finally catching up, 149 in different parts of the world are drafting rules that give DAOs a clearer 150 the U. S., Wyoming’s DUNA Act offers DAOs a way to be legally recognized while staying 151 recently, introduced in 2025, the Harmony Framework laid out a full approach to structuring DAO governance models so they can enjoy legal protection without giving up their unique decision-making 152 moves point to a future where DAOs can operate inside defined legal boundaries instead of in the 153 as the “New Internet Organizations” DAOs are on track to become the standard model for internet-native groups and 154 appeal is simple: they’re transparent, community-driven, and fit the way online communities already 155 Web3 adoption grows, DAOs could end up replacing a lot of the functions that traditional companies handle today.
There’s also a new twist: artificial 156 DAOs are experimenting with AI to automate routine governance tasks, like tallying votes or handling proposals, while leaving strategy and community-building to 157 that balance works, we may see AI-powered DAOs that are smarter, faster, and more resilient – a mix of machine efficiency and human judgment shaping the future of online 158 The rise of DAOs marks a major shift in how people organize, collaborate, and govern 159 DeFi protocols to social communities, these blockchain-based organizations are testing new models of ownership and decision-making that were impossible just a decade 160 this guide, you’ve seen DAOs explained from multiple angles, how they work, the benefits they bring, the challenges they face, and the real-world examples shaping the ecosystem 161 they won’t replace traditional companies overnight, DAOs are carving out their own space as the native structure for Web3 162 the technology matures and legal frameworks catch up, expect DAOs to play an even bigger role in the future of finance, culture, and the internet itself. * margin:0; padding:0; box-sizing:border-box; .
dao-quiz font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1rem; position:relative; overflow:hidden; . floating-particlesposition:absolute; inset:0; pointer-events:none; . particleposition:absolute; width:6px; height:6px; background:rgba(255,255,255,.3); border-radius:50%; animation:float 15s infinite linear; . particle:nth-child(1)top:20%; left:10%; animation-delay:0s; .
particle:nth-child(2)top:40%; right:15%; animation-delay:5s; . particle:nth-child(3)bottom:30%; left:20%; animation-delay:10s; . particle:nth-child(4)top:60%; right:25%; animation-delay:3s; . particle:nth-child(5)bottom:20%; right:10%; animation-delay:8s; @keyframes float0%,100%transform:translateY(0) scale(1); opacity:.3; 50%transform:translateY(-30px) scale(1.2); opacity:.8; .
quiz-container background:rgba(255,255,255,.95); backdrop-filter:blur(20px); border-radius:24px; padding:2.5rem; max-width:640px; width:100%; box-shadow:0 25px 50px rgba(0,0,0,.15); border:1px solid rgba(255,255,255,.2); position:relative; z-index:10; . quiz-headertext-align:center; margin-bottom:2rem; . quiz-titlefont-size:2rem; font-weight:800; background:linear-gradient(135deg,#667eea,#764ba2); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-bottom:.5rem; . quiz-subtitlecolor:#6b7280; font-size:1rem; .
score-displaydisplay:flex; justify-content:space-between; margin:1.25rem 0 1.5rem; padding:1rem; background:linear-gradient(135deg,#f0f9ff,#e0f2fe); border-radius:12px; border-left:4px solid #0ea5e9; . score-itemtext-align:center; . score-numberfont-size:1.4rem; font-weight:700; color:#0369a1; . score-labelfont-size:.9rem; color:#6b7280; margin-top:.25rem; .
question-cardbackground:#fff; border-radius:16px; padding:1.25rem; margin-bottom:1.25rem; box-shadow:0 10px 25px rgba(0,0,0,.08); border:2px solid transparent; transition:.3s; . question-card. correctborder-color:#10b981; background:linear-gradient(135deg,#ecfdf5,#f0fdf4); . question-card.
incorrectborder-color:#ef4444; background:linear-gradient(135deg,#fef2f2,#fef7f7); . question-numberdisplay:inline-block; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; padding:.3rem .8rem; border-radius:20px; font-size:.85rem; font-weight:600; margin-bottom:.75rem; . question-textfont-size:1.1rem; font-weight:600; color:#1f2937; margin-bottom:.9rem; line-height:1.5; . options-griddisplay:grid; gap:.75rem; .
option-button background:#fff; border:2px solid #e5e7eb; border-radius:12px; padding:1rem; font-size:1rem; color:#374151; font-weight:500; cursor:pointer; transition:all .25s; text-align:left; display:flex; align-items:center; . option-button:hoverborder-color:#667eea; background:#f8fafc; transform:translateY(-2px); box-shadow:0 5px 15px rgba(102,126,234,.2); . option-button. selectedborder-color:#667eea; background:linear-gradient(135deg,#f0f4ff,#e0e7ff); color:#4338ca; .
option-button. correctborder-color:#10b981; background:linear-gradient(135deg,#ecfdf5,#d1fae5); color:#065f46; . option-button. incorrectborder-color:#ef4444; background:linear-gradient(135deg,#fef2f2,#fecaca); color:#991b1b; .
option-button. disabledcursor:not-allowed; opacity:.7; . option-button:focusoutline:3px solid #93c5fd; outline-offset:2px; . option-letterdisplay:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; background:#e5e7eb; color:#6b7280; border-radius:50%; font-size:.9rem; font-weight:700; margin-right:1rem; transition:.2s; flex-shrink:0; .
option-button. selected . option-letterbackground:#667eea; color:#fff; . option-button.
correct . option-letterbackground:#10b981; color:#fff; . option-button. incorrect .
option-letterbackground:#ef4444; color:#fff; . feedbackmargin-top:1rem; padding:1rem; border-radius:8px; font-size:.95rem; line-height:1.5; opacity:0; transform:translateY(10px); transition:.25s; . feedback. showopacity:1; transform:translateY(0); .
feedback. correctbackground:#f0fdf4; color:#166534; border:1px solid #bbf7d0; . feedback. incorrectbackground:#fef2f2; color:#991b1b; border:1px solid #fecaca; .
next-buttonbackground:linear-gradient(135deg,#667eea,#764ba2); color:#fff; border:none; border-radius:12px; padding:.75rem 1.5rem; font-size:1rem; font-weight:600; cursor:pointer; transition:.25s; margin-top:1rem; opacity:0; transform:translateY(10px); . next-button. showopacity:1; transform:translateY(0); . next-button:hovertransform:translateY(-2px); box-shadow:0 8px 20px rgba(102,126,234,.4); .
next-button:focusoutline:3px solid #c4b5fd; outline-offset:2px; . completion-screentext-align:center; display:none; . completion-screen. showdisplay:block; animation:fadeIn .5s ease; @keyframes fadeInfromopacity:0; transform:scale(.98); toopacity:1; transform:scale(1); .
completion-emojifont-size:4rem; margin-bottom:1rem; . completion-titlefont-size:2rem; font-weight:700; margin-bottom:1rem; . completion-scorefont-size:1.2rem; margin-bottom:1rem; padding:1rem; background:linear-gradient(135deg,#fef3c7,#fde68a); border-radius:12px; border-left:4px solid #f59e0b; . share-rowdisplay:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:1rem 0 1.5rem; .
share-btn display:inline-flex; align-items:center; gap:.5rem; border:none; cursor:pointer; padding:.6rem .9rem; border-radius:10px; color:#fff; font-weight:600; transition:.2s; . share-btn:hovertransform:translateY(-2px); . share-xbackground:#111827; . share-libackground:#0a66c2; .
share-fbbackground:#1877f2; . share-copybackground:#10b981; . share-nativebackground:#7c3aed; . restart-buttonbackground:linear-gradient(135deg,#10b981,#059669); color:#fff; border:none; border-radius:12px; padding:1rem 2rem; font-size:1.05rem; font-weight:600; cursor:pointer; transition:.25s; .
restart-button:hovertransform:translateY(-2px); box-shadow:0 8px 20px rgba(16,185,129,.4); . restart-button:focusoutline:3px solid #6ee7b7; outline-offset:2px; @media (max-width:640px) . quiz-containerpadding:1.5rem; margin:1rem; . quiz-titlefont-size:1.6rem; .
question-textfont-size:1rem; /* Respect reduced motion */ @media (prefers-reduced-motion: reduce) . particle,. option-button:hover,. next-button:hoveranimation:none; transform:none; box-shadow:none; DAOs explained: quick quiz Test your knowledge of Decentralized Autonomous Organizations 1 Question 0 Correct 8 Total 🎉 Quiz Complete!
You scored 0 out of 8! Share X LinkedIn Facebook Copy link Take Quiz Again // --- Quiz data --- const questions = question:"What does DAO stand for?", options:"Digital Autonomous Organization","Decentralized Autonomous Organization","Distributed Application Online","Data Analytics Operation", correct:1, explanation:`DAO stands for Decentralized Autonomous Organization — a blockchain-based entity with no central authority.` , question:`What happened to 'The DAO' in 2016?`, options:"It became the first successful DAO","It was acquired by Ethereum","It was hacked and lost $50 million","It merged with Bitcoin", correct:2, explanation:`The DAO was exploited through a reentrancy attack, resulting in the loss of about $50 million worth of ether.` , question:"How do members typically vote in DAOs?", options:"Through email ballots","Using governance tokens","Phone calls to administrators","Physical meetings only", correct:1, explanation:`DAO members use governance tokens to vote on 163 tokens usually mean more voting power.` , question:"Which of these is NOT a type of DAO?", options:"Protocol DAO","Investment DAO","Banking DAO","Social DAO", correct:2, explanation:`Banking DAO is not a recognized 164 main types are Protocol, Investment, Social, Service, Grant, and Collector DAOs.` , question:"What is MakerDAO famous for?", options:"Creating Bitcoin","Managing the DAI stablecoin","Building the first NFT marketplace","Inventing smart contracts", correct:1, explanation:`MakerDAO governs the DAI stablecoin system, one of the most successful decentralized finance protocols.` , question:"What's a major challenge facing DAOs?", options:"Too much government regulation","Lack of internet connectivity","Whale dominance in voting","High energy consumption", correct:2, explanation:`Whale dominance occurs when large token holders control most of the voting power, potentially undermining decentralization.` , question:"Smart contracts in DAOs are:", options:"Legal documents signed digitally","Code that executes automatically when conditions are met","Contracts negotiated by AI","Traditional contracts stored on computers", correct:1, explanation:`Smart contracts are self-executing code on the blockchain that automatically carry out agreed-upon rules and decisions.` , question:"What advantage do DAOs offer over traditional organizations?", options:"Faster hiring processes","Better office locations","Complete transparency on blockchain","Lower tax rates", correct:2, explanation:`DAOs operate with complete transparency as all transactions, votes, and decisions are recorded on the blockchain.` ; let currentQuestion = 0; let correctAnswers = 0; let selectedAnswer = null; const quizContent = document.
getElementById('quiz-content'); function displayQuestion() const q = questionscurrentQuestion; 165 = ` Question $currentQuestion+1 of $questions. length $q. question $q. options.
map((opt,i)=>` $String. fromCharCode(65+i) $opt `). join('') $currentQuestion===questions. length-1 ?
'Finish Quiz' : 'Next Question' `; document. getElementById('current-question'). textContent = currentQuestion+1; selectedAnswer = null; function selectAnswer(answerIndex) if(selectedAnswer!==null) return; selectedAnswer = answerIndex; const q = questionscurrentQuestion; const isCorrect = answerIndex === q. correct; // Disable all q.
options. forEach((_,i)=> document. getElementById(`option-$i`). classList.
add('disabled')); // Mark correct + selected document. getElementById(`option-$q. correct`). classList.
add('correct'); if(! isCorrect) document. getElementById(`option-$answerIndex`). classList.
add('incorrect'); else correctAnswers++; document. getElementById('correct-answers'). textContent = correctAnswers; // Feedback const feedback = document. getElementById('feedback'); 166 = q.
explanation; feedback. classList. add('show', isCorrect ? 'correct' : 'incorrect'); // Show next document.
getElementById('next-button'). classList. add('show'); // Border state document. querySelector('.
question-card'). classList. add(isCorrect ? 'correct' : 'incorrect'); // Optional analytics hook // 167 && dataLayer.
push(event:'quiz_answer', question: currentQuestion+1, correct: isCorrect); function nextQuestion() currentQuestion++; if(currentQuestion const text = shareText(); if(navigator. share) try await navigator. share(title:'DAOs Explained Quiz', text, url:pageUrl); catch(e) else // Fallback to X const url = '0 + encodeURIComponent(text) + '&url=' + encodeURIComponent(pageUrl); openShare(url); ); btnX. addEventListener('click', ()=> const url = '1 + encodeURIComponent(shareText()) + '&url=' + encodeURIComponent(pageUrl); openShare(url); ); btnLI.
addEventListener('click', ()=> const url = '2 + encodeURIComponent(pageUrl); openShare(url); ); btnFB. addEventListener('click', ()=> const url = '3 + encodeURIComponent(pageUrl); openShare(url); ); btnCopy. addEventListener('click', async ()=> try await navigator. clipboard.
writeText(pageUrl); 168 = 'Copied!'; setTimeout(()=> 169 = 'Copy link', 1200); catch(e) 170 = 'Press Ctrl/Cmd+C'; setTimeout(()=> 171 = 'Copy link', 1200); ); // Init displayQuestion(); initSharing()
Story Tags

Latest news and analysis from Cryptopolitan



