Get your E-book

html

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Pharmacy Aptitude Test</title>
<link rel=”stylesheet” href=”styles.css”>
</head>
<body>
<div class=”container”>
<h1>Pharmacy Aptitude Test</h1>
<form id=”testForm”>
<div class=”section”>
<label for=”name”>Enter your name:</label>
<input type=”text” id=”name” name=”name” required>
</div>

<!– Pharmaceutical Chemistry Section –>
<div class=”section”>
<h2>Pharmaceutical Chemistry</h2>
<div class=”question”>
<p>1. What is the primary purpose of a proton pump inhibitor?</p>
<input type=”radio” name=”chemistry1″ value=”A”> A) Reduce stomach acid<br>
<input type=”radio” name=”chemistry1″ value=”B”> B) Increase blood pressure<br>
<input type=”radio” name=”chemistry1″ value=”C”> C) Treat bacterial infections<br>
<input type=”radio” name=”chemistry1″ value=”D”> D) Relieve pain<br>
</div>
<div class=”question”>
<p>2. Which of the following is an example of a beta-lactam antibiotic?</p>
<input type=”radio” name=”chemistry2″ value=”A”> A) Penicillin<br>
<input type=”radio” name=”chemistry2″ value=”B”> B) Erythromycin<br>
<input type=”radio” name=”chemistry2″ value=”C”> C) Ciprofloxacin<br>
<input type=”radio” name=”chemistry2″ value=”D”> D) Tetracycline<br>
</div>
<div class=”question”>
<p>3. Which is a common solvent used in pharmaceutical formulations?</p>
<input type=”radio” name=”chemistry3″ value=”A”> A) Acetone<br>
<input type=”radio” name=”chemistry3″ value=”B”> B) Ethanol<br>
<input type=”radio” name=”chemistry3″ value=”C”> C) Hexane<br>
<input type=”radio” name=”chemistry3″ value=”D”> D) Chloroform<br>
</div>
<div class=”question”>
<p>4. What is the role of a chiral center in drug molecules?</p>
<input type=”radio” name=”chemistry4″ value=”A”> A) Increase solubility<br>
<input type=”radio” name=”chemistry4″ value=”B”> B) Affect drug’s potency<br>
<input type=”radio” name=”chemistry4″ value=”C”> C) Improve stability<br>
<input type=”radio” name=”chemistry4″ value=”D”> D) Influence the drug’s stereochemistry<br>
</div>
<div class=”question”>
<p>5. Which of the following is an example of a prodrug?</p>
<input type=”radio” name=”chemistry5″ value=”A”> A) Codeine<br>
<input type=”radio” name=”chemistry5″ value=”B”> B) Aspirin<br>
<input type=”radio” name=”chemistry5″ value=”C”> C) Methadone<br>
<input type=”radio” name=”chemistry5″ value=”D”> D) Diazepam<br>
</div>
</div>

<!– Pharmacology Section –>
<div class=”section”>
<h2>Pharmacology</h2>
<div class=”question”>
<p>1. What is the primary action of beta-blockers?</p>
<input type=”radio” name=”pharmacology1″ value=”A”> A) Lower blood pressure<br>
<input type=”radio” name=”pharmacology1″ value=”B”> B) Increase heart rate<br>
<input type=”radio” name=”pharmacology1″ value=”C”> C) Reduce inflammation<br>
<input type=”radio” name=”pharmacology1″ value=”D”> D) Dilate blood vessels<br>
</div>
<div class=”question”>
<p>2. Which class of drugs is used to manage type 2 diabetes?</p>
<input type=”radio” name=”pharmacology2″ value=”A”> A) Antihypertensives<br>
<input type=”radio” name=”pharmacology2″ value=”B”> B) Antidiabetics<br>
<input type=”radio” name=”pharmacology2″ value=”C”> C) Antibiotics<br>
<input type=”radio” name=”pharmacology2″ value=”D”> D) Analgesics<br>
</div>
<div class=”question”>
<p>3. What is the mechanism of action of ACE inhibitors?</p>
<input type=”radio” name=”pharmacology3″ value=”A”> A) Block angiotensin II receptors<br>
<input type=”radio” name=”pharmacology3″ value=”B”> B) Inhibit angiotensin-converting enzyme<br>
<input type=”radio” name=”pharmacology3″ value=”C”> C) Increase aldosterone secretion<br>
<input type=”radio” name=”pharmacology3″ value=”D”> D) Enhance sympathetic activity<br>
</div>
<div class=”question”>
<p>4. Which drug class is used to treat depression?</p>
<input type=”radio” name=”pharmacology4″ value=”A”> A) Antidepressants<br>
<input type=”radio” name=”pharmacology4″ value=”B”> B) Antipsychotics<br>
<input type=”radio” name=”pharmacology4″ value=”C”> C) Antihistamines<br>
<input type=”radio” name=”pharmacology4″ value=”D”> D) Anticoagulants<br>
</div>
<div class=”question”>
<p>5. What is the primary use of statins?</p>
<input type=”radio” name=”pharmacology5″ value=”A”> A) Lower blood cholesterol<br>
<input type=”radio” name=”pharmacology5″ value=”B”> B) Treat infections<br>
<input type=”radio” name=”pharmacology5″ value=”C”> C) Reduce pain<br>
<input type=”radio” name=”pharmacology5″ value=”D”> D) Manage diabetes<br>
</div>
</div>

<!– Pharmaceutics Section –>
<div class=”section”>
<h2>Pharmaceutics</h2>
<div class=”question”>
<p>1. What is the main purpose of a tablet coating?</p>
<input type=”radio” name=”pharmaceutics1″ value=”A”> A) Improve taste<br>
<input type=”radio” name=”pharmaceutics1″ value=”B”> B) Enhance stability<br>
<input type=”radio” name=”pharmaceutics1″ value=”C”> C) Control release<br>
<input type=”radio” name=”pharmaceutics1″ value=”D”> D) Reduce side effects<br>
</div>
<div class=”question”>
<p>2. What type of dosage form is used for sustained release?</p>
<input type=”radio” name=”pharmaceutics2″ value=”A”> A) Tablet<br>
<input type=”radio” name=”pharmaceutics2″ value=”B”> B) Injection<br>
<input type=”radio” name=”pharmaceutics2″ value=”C”> C) Syrup<br>
<input type=”radio” name=”pharmaceutics2″ value=”D”> D) Ointment<br>
</div>
<div class=”question”>
<p>3. What is the primary component of a suspension?</p>
<input type=”radio” name=”pharmaceutics3″ value=”A”> A) Solvent<br>
<input type=”radio” name=”pharmaceutics3″ value=”B”> B) Active ingredient<br>
<input type=”radio” name=”pharmaceutics3″ value=”C”> C) Thickening agent<br>
<input type=”radio” name=”pharmaceutics3″ value=”D”> D) Preservative<br>
</div>
<div class=”question”>
<p>4. What is the main advantage of a transdermal patch?</p>
<input type=”radio” name=”pharmaceutics4″ value=”A”> A) Easy to use<br>
<input type=”radio” name=”pharmaceutics4″ value=”B”> B) Avoids first-pass metabolism<br>
<input type=”radio” name=”pharmaceutics4″ value=”C”> C) Quick onset<br>
<input type=”radio” name=”pharmaceutics4″ value=”D”> D) Long shelf life<br>
</div>
<div class=”question”>
<p>5. What is a primary function of excipients in drug formulations?</p>
<input type=”radio” name=”pharmaceutics5″ value=”A”> A) Enhance flavor<br>
<input type=”radio” name=”pharmaceutics5″ value=”B”> B) Aid in drug stability<br>
<input type=”radio” name=”pharmaceutics5″ value=”C”> C) Increase solubility<br>
<input type=”radio” name=”pharmaceutics5″ value=”D”> D) Control release<br>
</div>
</div>

<!– Pharmacognosy Section –>
<div class=”section”>
<h2>Pharmacognosy</h2>
<div class=”question”>
<p>1. What is the primary source of alkaloids?</p>
<input type=”radio” name=”pharmacognosy1″ value=”A”> A) Plants<br>
<input type=”radio” name=”pharmacognosy1″ value=”B”> B) Animals<br>
<input type=”radio” name=”pharmacognosy1″ value=”C”> C) Minerals<br>
<input type=”radio” name=”pharmacognosy1″ value=”D”> D) Synthetic<br>
</div>
<div class=”question”>
<p>2. Which plant is known for its antimalarial properties?</p>
<input type=”radio” name=”pharmacognosy2″ value=”A”> A) Ginger<br>
<input type=”radio” name=”pharmacognosy2″ value=”B”> B) Quinine<br>
<input type=”radio” name=”pharmacognosy2″ value=”C”> C) Aloe vera<br>
<input type=”radio” name=”pharmacognosy2″ value=”D”> D) Peppermint<br>
</div>
<div class=”question”>
<p>3. What is the primary use of digitalis?</p>
<input type=”radio” name=”pharmacognosy3″ value=”A”> A) Treat heart conditions<br>
<input type=”radio” name=”pharmacognosy3″ value=”B”> B) Relieve pain<br>
<input type=”radio” name=”pharmacognosy3″ value=”C”> C) Control blood sugar<br>
<input type=”radio” name=”pharmacognosy3″ value=”D”> D) Treat infections<br>
</div>
<div class=”question”>
<p>4. Which of the following is a natural resin used in medicine?</p>
<input type=”radio” name=”pharmacognosy4″ value=”A”> A) Opium<br>
<input type=”radio” name=”pharmacognosy4″ value=”B”> B) Latex<br>
<input type=”radio” name=”pharmacognosy4″ value=”C”> C) Ginseng<br>
<input type=”radio” name=”pharmacognosy4″ value=”D”> D) Aloe<br>
</div>
<div class=”question”>
<p>5. What is the main active compound in turmeric?</p>
<input type=”radio” name=”pharmacognosy5″ value=”A”> A) Curcumin<br>
<input type=”radio” name=”pharmacognosy5″ value=”B”> B) Quinine<br>
<input type=”radio” name=”pharmacognosy5″ value=”C”> C) Ephedrine<br>
<input type=”radio” name=”pharmacognosy5″ value=”D”> D) Atropine<br>
</div>
</div>

<!– Biochemistry & Microbiology Section –>
<div class=”section”>
<h2>Biochemistry & Microbiology</h2>
<div class=”question”>
<p>1. What is the function of enzymes in biochemical reactions?</p>
<input type=”radio” name=”biochemistry1″ value=”A”> A) Increase reaction speed<br>
<input type=”radio” name=”biochemistry1″ value=”B”> B) Provide energy<br>
<input type=”radio” name=”biochemistry1″ value=”C”> C) Stabilize reactions<br>
<input type=”radio” name=”biochemistry1″ value=”D”> D) Change pH<br>
</div>
<div class=”question”>
<p>2. What is the role of DNA polymerase?</p>
<input type=”radio” name=”biochemistry2″ value=”A”> A) Synthesizes proteins<br>
<input type=”radio” name=”biochemistry2″ value=”B”> B) Replicates DNA<br>
<input type=”radio” name=”biochemistry2″ value=”C”> C) Transcribes RNA<br>
<input type=”radio” name=”biochemistry2″ value=”D”> D) Degrades RNA<br>
</div>
<div class=”question”>
<p>3. What is the primary energy currency of the cell?</p>
<input type=”radio” name=”biochemistry3″ value=”A”> A) ATP<br>
<input type=”radio” name=”biochemistry3″ value=”B”> B) NADH<br>
<input type=”radio” name=”biochemistry3″ value=”C”> C) FADH2<br>
<input type=”radio” name=”biochemistry3″ value=”D”> D) GTP<br>
</div>
<div class=”question”>
<p>4. What type of microorganism is used in the fermentation of bread?</p>
<input type=”radio” name=”biochemistry4″ value=”A”> A) Bacteria<br>
<input type=”radio” name=”biochemistry4″ value=”B”> B) Yeast<br>
<input type=”radio” name=”biochemistry4″ value=”C”> C) Virus<br>
<input type=”radio” name=”biochemistry4″ value=”D”> D) Algae<br>
</div>
<div class=”question”>
<p>5. What is the main function of the ribosome?</p>
<input type=”radio” name=”biochemistry5″ value=”A”> A) Protein synthesis<br>
<input type=”radio” name=”biochemistry5″ value=”B”> B) DNA replication<br>
<input type=”radio” name=”biochemistry5″ value=”C”> C) Lipid synthesis<br>
<input type=”radio” name=”biochemistry5″ value=”D”> D) Carbohydrate metabolism<br>
</div>
</div>

<!– Regulatory Affairs & Quality Control Section –>
<div class=”section”>
<h2>Regulatory Affairs & Quality Control</h2>
<div class=”question”>
<p>1. What is the primary purpose of Good Manufacturing Practices (GMP)?</p>
<input type=”radio” name=”regulatory1″ value=”A”> A) Ensure product quality<br>
<input type=”radio” name=”regulatory1″ value=”B”> B) Reduce production costs<br>
<input type=”radio” name=”regulatory1″ value=”C”> C) Increase production speed<br>
<input type=”radio” name=”regulatory1″ value=”D”> D) Enhance marketing<br>
</div>
<div class=”question”>
<p>2. What does an NDA (New Drug Application) include?</p>
<input type=”radio” name=”regulatory2″ value=”A”> A) Clinical trial data<br>
<input type=”radio” name=”regulatory2″ value=”B”> B) Marketing strategies<br>
<input type=”radio” name=”regulatory2″ value=”C”> C) Production costs<br>
<input type=”radio” name=”regulatory2″ value=”D”> D) Packaging designs<br>
</div>
<div class=”question”>
<p>3. Which regulatory body oversees drug approval in the United States?</p>
<input type=”radio” name=”regulatory3″ value=”A”> A) FDA<br>
<input type=”radio” name=”regulatory3″ value=”B”> B) EMA<br>
<input type=”radio” name=”regulatory3″ value=”C”> C) WHO<br>
<input type=”radio” name=”regulatory3″ value=”D”> D) MHRA<br>
</div>
<div class=”question”>
<p>4. What is a stability study?</p>
<input type=”radio” name=”regulatory4″ value=”A”> A) Testing the durability of a drug<br>
<input type=”radio” name=”regulatory4″ value=”B”> B) Assessing the drug’s effectiveness<br>
<input type=”radio” name=”regulatory4″ value=”C”> C) Analyzing production costs<br>
<input type=”radio” name=”regulatory4″ value=”D”> D) Evaluating drug interactions<br>
</div>
<div class=”question”>
<p>5. What does the term ‘validation’ refer to in quality control?</p>
<input type=”radio” name=”regulatory5″ value=”A”> A) Ensuring accuracy of processes<br>
<input type=”radio” name=”regulatory5″ value=”B”> B) Reducing costs<br>
<input type=”radio” name=”regulatory5″ value=”C”> C) Improving packaging<br>
<input type=”radio” name=”regulatory5″ value=”D”> D) Enhancing marketing<br>
</div>
</div>

<!– Career Path Selection –>
<div class=”section”>
<h2>Career Path Selection</h2>
<div class=”question”>
<p>1. Which career path involves working directly with patients to manage their medication?</p>
<input type=”radio” name=”career1″ value=”Pharmacist”> A) Pharmacist<br>
<input type=”radio” name=”career1″ value=”Hospital Pharmacist”> B) Hospital Pharmacist<br>
<input type=”radio” name=”career1″ value=”Clinical Research Associate (CRA)”> C) Clinical Research Associate (CRA)<br>
<input type=”radio” name=”career1″ value=”Pharmaceutical Sales Representative”> D) Pharmaceutical Sales Representative<br>
</div>
<div class=”question”>
<p>2. Who is responsible for ensuring compliance with regulatory requirements in drug manufacturing?</p>
<input type=”radio” name=”career2″ value=”Regulatory Affairs Specialist”> A) Regulatory Affairs Specialist<br>
<input type=”radio” name=”career2″ value=”Quality Control (QC) Analyst”> B) Quality Control (QC) Analyst<br>
<input type=”radio” name=”career2″ value=”Pharmaceutical Formulation Scientist”> C) Pharmaceutical Formulation Scientist<br>
<input type=”radio” name=”career2″ value=”Pharmacovigilance Officer”> D) Pharmacovigilance Officer<br>
</div>
<div class=”question”>
<p>3. Which role involves overseeing the quality of pharmaceutical products through various stages of production?</p>
<input type=”radio” name=”career3″ value=”Quality Assurance (QA) Specialist”> A) Quality Assurance (QA) Specialist<br>
<input type=”radio” name=”career3″ value=”Drug Inspector”> B) Drug Inspector<br>
<input type=”radio” name=”career3″ value=”Medical Science Liaison (MSL)”> C) Medical Science Liaison (MSL)<br>
<input type=”radio” name=”career3″ value=”Toxicologist”> D) Toxicologist<br>
</div>
<div class=”question”>
<p>4. Who works to develop new drugs and improve existing formulations?</p>
<input type=”radio” name=”career4″ value=”Pharmaceutical Formulation Scientist”> A) Pharmaceutical Formulation Scientist<br>
<input type=”radio” name=”career4″ value=”Health Informatics Specialist”> B) Health Informatics Specialist<br>
<input type=”radio” name=”career4″ value=”Biotech Research Scientist”> C) Biotech Research Scientist<br>
<input type=”radio” name=”career4″ value=”Pharmacy Manager”> D) Pharmacy Manager<br>
</div>
<div class=”question”>
<p>5. Who is primarily involved in drug safety and monitoring adverse effects?</p>
<input type=”radio” name=”career5″ value=”Pharmacovigilance Officer”> A) Pharmacovigilance Officer<br>
<input type=”radio” name=”career5″ value=”Clinical Research Associate (CRA)”> B) Clinical Research Associate (CRA)<br>
<input type=”radio” name=”career5″ value=”Pharmaceutical Sales Representative”> C) Pharmaceutical Sales Representative<br>
<input type=”radio” name=”career5″ value=”Regulatory Affairs Specialist”> D) Regulatory Affairs Specialist<br>
</div>
</div>

<button type=”submit”>Submit</button>
</form>
<div id=”result”></div>
</div>
<script src=”script.js”></script>
</body>
</html>

css

/* styles.css */

/* General Styling */
body {
font-family: ‘Arial’, sans-serif;
background-color: #f4f6f7;
color: #333;
margin: 0;
padding: 20px;
box-sizing: border-box;
}

/* Form Container */
form {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: 0 auto;
}

h1 {
text-align: center;
color: #3498db;
}

/* Labels and Inputs */
label {
display: block;
margin-bottom: 10px;
font-size: 16px;
color: #555;
}

input[type=”text”],
input[type=”email”],
input[type=”tel”] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
transition: border-color 0.3s;
}

input[type=”text”]:focus,
input[type=”email”]:focus,
input[type=”tel”]:focus {
border-color: #3498db;
}

button[type=”submit”] {
width: 100%;
padding: 15px;
background-color: #3498db;
border: none;
border-radius: 5px;
color: white;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s;
}

button[type=”submit”]:hover {
background-color: #2980b9;
}

/* Result Section */
#result {
margin-top: 20px;
padding: 20px;
background-color: #ecf0f1;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#result h2 {
color: #27ae60;
text-align: center;
}

#result ul {
list-style-type: none;
padding: 0;
}

#result ul li {
background-color: #f4f6f7;
margin: 5px 0;
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd;
}

#result p {
font-size: 16px;
margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
form {
padding: 15px;
}

label,
input[type=”text”],
input[type=”email”],
input[type=”tel”],
button[type=”submit”] {
font-size: 14px;
}

button[type=”submit”] {
padding: 12px;
}

#result {
padding: 15px;
}

#result h2 {
font-size: 20px;
}
}

/* Additional Styling for Personal Information */
input[type=”tel”] {
appearance: none;
-webkit-appearance: none;
margin-bottom: 20px;
}

/* Hover effect for result list */
#result ul li:hover {
background-color: #d1f7d6;
border-color: #27ae60;
}

/* Background Animation */
body:before {
content: ”;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #3498db, #9b59b6);
background-size: 400% 400%;
z-index: -1;
animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

java script

// script.js
document.getElementById(‘testForm’).addEventListener(‘submit’, function(event) {
event.preventDefault();

const name = document.getElementById(‘name’).value;

const getAnswers = (sectionName) => {
const answers = [];
for (let i = 1; i <= 5; i++) {
const answer = document.querySelector(`input[name=${sectionName}${i}]:checked`);
if (answer) {
answers.push(answer.value);
}
}
return answers;
};

const chemistryAnswers = getAnswers(‘chemistry’);
const pharmacologyAnswers = getAnswers(‘pharmacology’);
const pharmaceuticsAnswers = getAnswers(‘pharmaceutics’);
const pharmacognosyAnswers = getAnswers(‘pharmacognosy’);
const biochemistryAnswers = getAnswers(‘biochemistry’);
const regulatoryAnswers = getAnswers(‘regulatory’);
const careerAnswers = getAnswers(‘career’);

let recommendedCareerPath = ”;

// Determine the best section based on answers
const sections = {
pharmaceuticalChemistry: chemistryAnswers.length,
pharmacology: pharmacologyAnswers.length,
pharmaceutics: pharmaceuticsAnswers.length,
pharmacognosy: pharmacognosyAnswers.length,
biochemistry: biochemistryAnswers.length,
regulatoryAffairs: regulatoryAnswers.length,
careerPath: careerAnswers.length
};

const bestSection = Object.keys(sections).reduce((a, b) => sections[a] > sections[b] ? a : b);

switch (bestSection) {
case ‘pharmaceuticalChemistry’:
recommendedCareerPath = ‘Pharmaceutical Formulation Scientist, Pharmacist, or Toxicologist’;
break;
case ‘pharmacology’:
recommendedCareerPath = ‘Clinical Research Associate (CRA), Pharmacovigilance Officer, or Medical Science Liaison (MSL)’;
break;
case ‘pharmaceutics’:
recommendedCareerPath = ‘Pharmaceutical Formulation Scientist, Quality Control (QC) Analyst, or Quality Assurance (QA) Specialist’;
break;
case ‘pharmacognosy’:
recommendedCareerPath = ‘Biotech Research Scientist, Pharmacist, or Health Informatics Specialist’;
break;
case ‘biochemistry’:
recommendedCareerPath = ‘Biotech Research Scientist, Toxicologist, or Pharmaceutical Formulation Scientist’;
break;
case ‘regulatoryAffairs’:
recommendedCareerPath = ‘Regulatory Affairs Specialist, Drug Inspector, or Quality Assurance (QA) Specialist’;
break;
case ‘careerPath’:
recommendedCareerPath = ‘Clinical Research Associate (CRA), Pharmacist, or Pharmaceutical Sales Representative’;
break;
default:
recommendedCareerPath = ‘Pharmacist, Pharmaceutical Sales Representative, or Clinical Research Associate (CRA)’;
}

const swotAnalysis = `
<h3>SWOT Analysis</h3>
<p><strong>Strengths:</strong> Based on your performance, your strong areas include knowledge of ${bestSection}, which is a critical part of ${recommendedCareerPath}. You are equipped with skills that are valuable in the industry.</p>
<p><strong>Weaknesses:</strong> Consider focusing more on areas where you performed less well, such as ${Object.keys(sections).find(s => sections[s] === Math.min(…Object.values(sections)))}.</p>
<p><strong>Opportunities:</strong> The pharmaceutical industry offers diverse career opportunities. Your strengths align with roles in ${recommendedCareerPath}, so pursue relevant internships and certifications.</p>
<p><strong>Threats:</strong> Keep up with industry trends and skill development to stay competitive. Address your weak areas to avoid falling behind.</p>
`;

document.getElementById(‘result’).innerHTML = `
<h2>Thank you, ${name}!</h2>
<p>Based on your responses, we recommend the following career paths:</p>
<ul>
<li>${recommendedCareerPath}</li>
</ul>
${swotAnalysis}
`;

// Record responses in Google Sheets
const formData = {
Name: name,
RecommendedCareerPath: recommendedCareerPath,
Chemistry: chemistryAnswers,
Pharmacology: pharmacologyAnswers,
Pharmaceutics: pharmaceuticsAnswers,
Pharmacognosy: pharmacognosyAnswers,
Biochemistry: biochemistryAnswers,
RegulatoryAffairs: regulatoryAnswers,
CareerAnswers: careerAnswers,
SWOT: swotAnalysis
};

fetch(‘https://sheet.best/api/sheets/YOUR_GOOGLE_SHEET_ID’, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json’
},
body: JSON.stringify(formData)
})
.then(response => response.json())
.then(data => {
console.log(‘Success:’, data);
})
.catch((error) => {
console.error(‘Error:’, error);
});
});

Important infor for web

Rajat