bilingual-before/app.js

Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.

document.querySelector('#language').addEventListener('click',()=>{document.documentElement.lang='fr';document.querySelector('#heading').textContent='Projets';document.querySelector('#language').textContent='English';});