You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the problem while working on testing >= comparison operator. In while comparing 121 >= 50 it always return false and we can see it should be true.
Is there anything I am missing? I am using Angular 9 and I believe it is the issue related with typescript. If anywhere I am incorrect please advise me for the correction.
`import { Component, TrackByFunction } from '@angular/core';
@component({
selector: 'my-app',
templateUrl: './app.component.html',
})
export class AppComponent {
constructor(
) {}
ngOnInit() {
let value1 = "121";
let value2 = "50";
let flag = value1 >= value2; // 121 >= 50 => true
console.log(${value1} >= ${value2} expected: true, output:, flag);
}`
The text was updated successfully, but these errors were encountered:
It seems like its intentional to move towards strongly typed language. Apology for not following the bug template, just was in hurry while writing the concern.
Hi there,
I found the problem while working on testing >= comparison operator. In while comparing 121 >= 50 it always return false and we can see it should be true.
Is there anything I am missing? I am using Angular 9 and I believe it is the issue related with typescript. If anywhere I am incorrect please advise me for the correction.
`import { Component, TrackByFunction } from '@angular/core';
@component({
selector: 'my-app',
templateUrl: './app.component.html',
})
export class AppComponent {
constructor(
) {}
ngOnInit() {
let value1 = "121";
let value2 = "50";
let flag = value1 >= value2; // 121 >= 50 => true
console.log(
${value1} >= ${value2} expected: true, output:
, flag);}`
The text was updated successfully, but these errors were encountered: