0% found this document useful (0 votes)
2 views1 page

Javascript Basic Concepts

The document outlines basic JavaScript concepts and expressions related to number manipulation, string handling, and array operations. It includes operations like checking for even/odd numbers, manipulating digits, and handling strings and arrays. Each concept is paired with its corresponding JavaScript expression for practical application.

Uploaded by

Tamizh Arasan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Javascript Basic Concepts

The document outlines basic JavaScript concepts and expressions related to number manipulation, string handling, and array operations. It includes operations like checking for even/odd numbers, manipulating digits, and handling strings and arrays. Each concept is paired with its corresponding JavaScript expression for practical application.

Uploaded by

Tamizh Arasan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JavaScript Basic Concepts

[Link] Concept Expression


1 Get last digit of a number n % 10
2 Remove last digit [Link](n / 10)
3 Check even number n % 2 === 0
4 Check odd number n % 2 !== 0
5 Increase value n++ or n += 1
6 Decrease value n-- or n -= 1
7 Loop condition (less than) i<n
8 Less than or equal i <= n
9 Generate numbers for(let i=start; i<end; i++)
10 Add values sum += num
11 Count digits count++
12 Sum of digits sum += digit
13 Product of digits product *= digit
14 Armstrong number sum += digit ** power
15 Divisible by 3 n % 3 === 0
16 Check palindrome str === [Link]('').reverse().join('')
17 ASCII value [Link](0)
18 Number to character [Link](num)
19 Check vowels 'aeiou'.includes(char)
20 Find smallest [Link](a, b)
21 Find largest [Link](a, b)
22 String length [Link]
23 Array push [Link](value)
24 Array pop [Link]()

You might also like