Next.js QuestCode Sinhala

JavaScript

Pro

Learn the language of the web: variables, functions, arrays and objects, one small task at a time.

12 activities

The first 5 activities are free

Unlock the other 7 activities to finish the course (Rs. 1,490).

Unlock the full course
JavaScript

Print Your First Message

English: Use console.log() to print a message, the first thing every JavaScript developer learns. සිංහල: console.log() පාවිච්චි කරලා message එකක් print කරන්න. හැම JavaScript developer කෙනෙක්ම මුලින්ම ඉගෙන ගන්න දේ.

Not started
JavaScript

Variables: let and const

English: Store values in variables with const and let, and change a value that is allowed to change. සිංහල: const සහ let වලින් variables වල values තියාගන්න, වෙනස් විය හැකි value එකක් වෙනස් කරන්න.

Locked
JavaScript

Numbers and Operators: An Order Total

English: Use arithmetic operators to work out an order total and the change to give back. සිංහල: arithmetic operators පාවිච්චි කරලා order එකක මුළු මුදල සහ ආපහු දෙන ඉතිරි මුදල ගණනය කරන්න.

Locked
JavaScript

Strings and Template Literals

English: Build text with template literals and use common string methods and properties. සිංහල: template literals වලින් text හදලා, සාමාන්‍ය string methods සහ properties පාවිච්චි කරන්න.

Locked
JavaScript

Functions: Parameters and Return

English: Write your first function that takes an input and returns a result. සිංහල: input එකක් ගන්නා, result එකක් return කරන ඔයාගේ පළමු function එක ලියන්න.

Locked
JavaScript

Conditions: if, else if, else

English: Make decisions in code: turn a mark into a letter grade. සිංහල: code එකෙන් තීරණ ගන්න: marks එකක් අකුරු grade එකකට හරවන්න.

Pro
JavaScript

Loops: Add Up with for

English: Use a for loop to add up the numbers from 1 to n. සිංහල: 1 සිට n දක්වා numbers එකතු කරන්න for loop එකක් පාවිච්චි කරන්න.

Pro
JavaScript

Arrays: Add, Remove and Read

English: Add and remove items in an array and read its length. සිංහල: array එකකට items එකතු කරලා, අයින් කරලා, ඒකේ length එක කියවන්න.

Pro
JavaScript

Arrays: map and filter

English: Pick items out of an array with filter, and change every item with map. සිංහල: filter මගින් array එකකින් items තෝරලා, map මගින් හැම item එකක්ම වෙනස් කරන්න.

Pro
JavaScript

Arrays: Calculate an Average with reduce

English: Combine all the items of an array into one value with reduce. සිංහල: reduce මගින් array එකක හැම item එකක්ම එකතු කරලා එක value එකක් හදන්න.

Pro
JavaScript

Objects: Properties and a Summary Function

English: Add and change properties on an object, and write a function that describes any object of that shape. සිංහල: object එකකට properties එකතු කරලා වෙනස් කරලා, ඒ හැඩයේ ඕනම object එකක් විස්තර කරන function එකක් ලියන්න.

Pro
JavaScript

Mini Project: Word Counter

English: Combine strings, arrays and functions to count words and find the longest word in a text. සිංහල: text එකක වචන ගණන් කරන්න සහ දිගම වචනය හොයන්න strings, arrays සහ functions එකතු කරන්න.

Pro