Untitled
Untitled
Untitled
Practice writing basic control flow statements like loops and conditionals.
Explore and understand how to work with functions in JavaScript.
Study the built-in JavaScript objects and how to work with them, such as arrays,
strings, and dates.
Practice manipulating the DOM (Document Object Model) using JavaScript to create
interactive web pages.
Learn how to work with events in JavaScript to make your web pages more responsive.
Study how to use Ajax to make asynchronous requests to servers and update web page
content without reloading the page.
Read about object-oriented programming concepts in JavaScript and how to work with
classes, objects, and inheritance.
Experiment with popular JavaScript libraries and frameworks like React, Vue, and
Angular.
Work on small coding challenges or projects to put your skills into practice.
Remember, consistency is key to learning and remembering JavaScript. Even just
spending 10-15 minutes a day working on these tasks can help you improve your
skills and knowledge over time.
Sure! Here are a few coding challenges for you to try out:
FizzBuzz: Write a program that prints the numbers from 1 to 100. For multiples of
three print "Fizz" instead of the number and for the multiples of five print
"Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
Reverse a string: Write a function that takes a string as input and returns the
string reversed.
Check for palindrome: Write a function that takes a string as input and returns
true if it is a palindrome, and false otherwise. (A palindrome is a word, phrase,
number, or other sequence of characters that reads the same forward and backward).
Find the largest number in an array: Write a function that takes an array of
numbers as input and returns the largest number in the array.
Fibonacci sequence: Write a function that takes a number n as input and returns the
first n Fibonacci numbers.
Caesar Cipher: Write a function that takes a string and a shift number as inputs,
and returns a new string with each letter shifted by the given number according to
the Caesar Cipher.
Check for prime numbers: Write a function that takes a number as input and returns
true if it is a prime number, and false otherwise.
function pushToArray(array:any) {
array.push(4); // this affects the value of 'arr' outside the function
}
function add(a){
return a + 1;
}
let x = 3;
console.log(add(x))
console.log(x)